mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 16:40:27 +00:00
- Changed ghost command (using NickServ)
- Ghost before registering svn path=/trunk/; revision=35091
This commit is contained in:
parent
555a6a340f
commit
c17bb07ec3
2 changed files with 6 additions and 3 deletions
|
@ -17,7 +17,7 @@ namespace TechBot.IRCLibrary
|
|||
public const string PRIVMSG = "PRIVMSG";
|
||||
public const string USER = "USER";
|
||||
public const string PASS = "PASS";
|
||||
public const string GHOST = "NS GHOST";
|
||||
public const string GHOST = "MSG NICKSERV GHOST";
|
||||
|
||||
public const string RPL_NAMREPLY = "353";
|
||||
public const string RPL_ENDOFNAMES = "366";
|
||||
|
|
|
@ -637,10 +637,13 @@ namespace TechBot.IRCLibrary
|
|||
throw new ArgumentNullException("nickname", "Nickname cannot be null.");
|
||||
firstPingReceived = false;
|
||||
if (password != null)
|
||||
{
|
||||
/* First ghost ourself and then register */
|
||||
if (nickname != null)
|
||||
SendMessage(new IrcMessage(IRC.GHOST, nickname + " " + password));
|
||||
SubmitPassword(password);
|
||||
}
|
||||
ChangeNick(nickname);
|
||||
/* Before we send our nickname, just ghost it */
|
||||
SendMessage(new IrcMessage(IRC.GHOST, nickname));
|
||||
/* OLD: USER <username> <hostname> <servername> <realname> */
|
||||
/* NEW: USER <user> <mode> <unused> <realname> */
|
||||
SendMessage(new IrcMessage(IRC.USER, String.Format("{0} 0 * :{1}",
|
||||
|
|
Loading…
Reference in a new issue