Author: pschweitzer
Date: Sun Aug 3 16:34:12 2008
New Revision: 35091
URL:
http://svn.reactos.org/svn/reactos?rev=35091&view=rev
Log:
- Changed ghost command (using NickServ)
- Ghost before registering
Modified:
trunk/irc/TechBot/TechBot.IRCLibrary/IRC.cs
trunk/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs
Modified: trunk/irc/TechBot/TechBot.IRCLibrary/IRC.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.IRCLibrary/IRC…
==============================================================================
--- trunk/irc/TechBot/TechBot.IRCLibrary/IRC.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.IRCLibrary/IRC.cs [iso-8859-1] Sun Aug 3 16:34:12 2008
@@ -17,7 +17,7 @@
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";
Modified: trunk/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs
URL:
http://svn.reactos.org/svn/reactos/trunk/irc/TechBot/TechBot.IRCLibrary/Irc…
==============================================================================
--- trunk/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs [iso-8859-1] (original)
+++ trunk/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs [iso-8859-1] Sun Aug 3 16:34:12
2008
@@ -637,10 +637,13 @@
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}",