Esempio n. 1
0
        private void ChangeNick(object sender, IrcEventArgs e)
        {
            if (e.Data.MessageArray.Length <= 1)
            {
                return;
            }
            if (!isValidNick(e.Data.MessageArray[1]))
            {
                return;
            }

            bot.RfcNick(e.Data.MessageArray[1]);
            Settings.Default.Nick = e.Data.MessageArray[1];
            Settings.Default.Save();
        }