예제 #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();
        }