From 089e7fccd23474fd0449ae094a9b85fb71877ee3 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 3 Aug 2008 20:04:26 +0000 Subject: [PATCH] Implemented ghost feature to TechBot svn path=/trunk/; revision=35086 --- irc/TechBot/TechBot.IRCLibrary/IRC.cs | 1 + irc/TechBot/TechBot.IRCLibrary/IrcClient.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/irc/TechBot/TechBot.IRCLibrary/IRC.cs b/irc/TechBot/TechBot.IRCLibrary/IRC.cs index 488b6b28d08..f1abf5b5746 100644 --- a/irc/TechBot/TechBot.IRCLibrary/IRC.cs +++ b/irc/TechBot/TechBot.IRCLibrary/IRC.cs @@ -17,6 +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 RPL_NAMREPLY = "353"; public const string RPL_ENDOFNAMES = "366"; diff --git a/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs b/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs index ecd7b7ac719..7851d6fa366 100644 --- a/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs +++ b/irc/TechBot/TechBot.IRCLibrary/IrcClient.cs @@ -639,6 +639,8 @@ namespace TechBot.IRCLibrary if (password != null) SubmitPassword(password); ChangeNick(nickname); + /* Before we send our nickname, just ghost it */ + SendMessage(new IrcMessage(IRC.GHOST, nickname)); /* OLD: USER */ /* NEW: USER */ SendMessage(new IrcMessage(IRC.USER, String.Format("{0} 0 * :{1}",