예제 #1
0
        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);
        }
예제 #2
0
        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);
        }