Пример #1
0
 public void SendEmoteAnnounce(string format, params object[] args)
 {
     if (Settings.Current.IRC.Enabled)
     {
         Client.ChatAction(Settings.Current.IRC.Channel.Announce, string.Format(format, args));
     }
 }
Пример #2
0
 public void SendEmoteAnnounce(string str)
 {
     if (Settings.Current.IRC.Enabled)
     {
         Client.ChatAction(Settings.Current.IRC.Channel.Announce, str);
     }
 }
Пример #3
0
        public void Close(bool isCancelKeyExit)
        {
            Disconnecting = true;

            if (!Client.IsConnected)
            {
                return;
            }

            if (!isCancelKeyExit)
            {
                Client.ChatAction(Settings.Current.IRC.Channel.Main, "is exiting…");
            }

            SendEmoteAnnounce("is exiting…");
            Client.LogOut();
            Client.Close();
        }