mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +00:00
Implemented ghost feature to TechBot
svn path=/trunk/; revision=35086
This commit is contained in:
parent
d425d03d5b
commit
089e7fccd2
2 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@ namespace TechBot.IRCLibrary
|
||||||
public const string PRIVMSG = "PRIVMSG";
|
public const string PRIVMSG = "PRIVMSG";
|
||||||
public const string USER = "USER";
|
public const string USER = "USER";
|
||||||
public const string PASS = "PASS";
|
public const string PASS = "PASS";
|
||||||
|
public const string GHOST = "NS GHOST";
|
||||||
|
|
||||||
public const string RPL_NAMREPLY = "353";
|
public const string RPL_NAMREPLY = "353";
|
||||||
public const string RPL_ENDOFNAMES = "366";
|
public const string RPL_ENDOFNAMES = "366";
|
||||||
|
|
|
@ -639,6 +639,8 @@ namespace TechBot.IRCLibrary
|
||||||
if (password != null)
|
if (password != null)
|
||||||
SubmitPassword(password);
|
SubmitPassword(password);
|
||||||
ChangeNick(nickname);
|
ChangeNick(nickname);
|
||||||
|
/* Before we send our nickname, just ghost it */
|
||||||
|
SendMessage(new IrcMessage(IRC.GHOST, nickname));
|
||||||
/* OLD: USER <username> <hostname> <servername> <realname> */
|
/* OLD: USER <username> <hostname> <servername> <realname> */
|
||||||
/* NEW: USER <user> <mode> <unused> <realname> */
|
/* NEW: USER <user> <mode> <unused> <realname> */
|
||||||
SendMessage(new IrcMessage(IRC.USER, String.Format("{0} 0 * :{1}",
|
SendMessage(new IrcMessage(IRC.USER, String.Format("{0} 0 * :{1}",
|
||||||
|
|
Loading…
Reference in a new issue