void OnNick(UserInfo user, string newNick) { // We have successfully reclaimed our nick, so try to sign in again. if (newNick == nick) { Authenticate(); } if (newNick.Trim().Length == 0) { return; } nicks.OnChangedNick(user, newNick); MessageInGame(user.Nick, "&I(IRC) " + user.Nick + " &Sis now known as &I" + newNick); }
void OnNick(string user, string newNick) { string nick = Connection.ExtractNick(user); // We have successfully reclaimed our nick, so try to sign in again. if (newNick == botNick) { Authenticate(); } if (newNick.Trim().Length == 0) { return; } nicks.OnChangedNick(nick, newNick); MessageInGame(nick, "&I(IRC) " + nick + " &Sis now known as &I" + newNick); }