Author: pschweitzer
Date: Sun Aug 3 15:04:26 2008
New Revision: 35086
URL:
http://svn.reactos.org/svn/reactos?rev=35086&view=rev
Log:
Implemented ghost feature to TechBot
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 15:04:26 2008
@@ -17,6 +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 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 15:04:26
2008
@@ -639,6 +639,8 @@
if (password != null)
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}",