protected virtual void OnNickChange(string oldNick, string newNick)
        {
            foreach (var channel in Channels)
            {
                if (channel.Users.ContainsKey(oldNick))
                {
                    channel.Users.Add(newNick, channel.Users[oldNick]);
                    channel.Users.Remove(oldNick);
                }
            }

            NickChangeEvent.Raise(this, new NickChangeEventArgs(oldNick, newNick));
        }
Esempio n. 2
0
 private IrcEvent ParseNick(UserData sender, EntityData target, string[] param, string text)
 {
     // Export before altering data
     var ev = new NickChangeEvent((User)sender, text);
     sender.nick = text;
     return ev;
 }