Beispiel #1
0
 void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     this.Tooltip = string.Format("twitch: error");
     this.Header  = "Proto Error";
     MessageError("IRC error: " + e.Message);
     StartReconnect();
 }
Beispiel #2
0
        private void Client_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
        {
            var network = NetworkFromIrcClient(sender as StandardIrcClient);

            network.Messages.Add(new Message()
            {
                From = network.Name,
                Text = $"Protocol error ({e.Code}): {e.Message} { string.Join(" ", e.Parameters)}",
                Type = MessageType.System
            });
            NotifyNetworkChange(network);
        }
Beispiel #3
0
 private void clientProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     switch (e.Code)
     {
     // Nick is already in use
     case 433:
         if (this.NickInUse != null)
         {
             this.NickInUse(e);
         }
         this.Client.LocalUser.SetNickName(this.Client.LocalUser.NickName + "_temp" + DateTime.Now.Millisecond);
         break;
     }
 }
Beispiel #4
0
        /// <summary>
        /// </summary>
        /// <param name="sender">
        /// </param>
        /// <param name="e">
        /// </param>
        public override void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
        {
            // on Protocol Error 433 (Nickname in Use) change to an alternate one
            if (e.Code == 433)
            {
                IrcClient client     = (IrcClient)sender;
                string    actualName = client.LocalUser.NickName;
                int       temp       = -1;
                if (actualName.Replace(Config.Instance.CurrentConfig.RelayBotNick, string.Empty) != string.Empty)
                {
                    int.TryParse(actualName.Replace(Config.Instance.CurrentConfig.RelayBotNick, string.Empty), out temp);
                    temp++;
                }
                else
                {
                    temp = 1;
                }

                actualName = Config.Instance.CurrentConfig.RelayBotNick + temp;
                client.LocalUser.SetNickName(actualName);
            }
        }
 private static void ircClient2_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     Debug.Fail(string.Format(Properties.Resources.MessageProtocolError,
         2, e.Code, e.Message, string.Join(" ", e.Parameters)));
 }
Beispiel #6
0
 private void ircClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     Debug.Print("IrcClient Protocol Error Exception: " + e.Message);
     Reconnect();
 }
Beispiel #7
0
 /// <summary>
 /// IRC event: a protocol error message was received by us, e.g. because we sent an invalid command.
 /// </summary>
 private void Client_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     TmiLog.Error($"Error in IRC protocol: {e.Message}");
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void OnIrcClientProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
 }
Beispiel #9
0
 void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     // this.Header = string.Format( "twitch: error" );
     // MessageError( "IRC error: " + e.Message );
     // StartReconnect();
 }
Beispiel #10
0
 private static void ircClient2_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     Debug.Assert(false, string.Format(TestSettings.MessageProtocolError,
         2, e.Code, e.Message, string.Join(" ", e.Parameters)));
 }
Beispiel #11
0
 void client_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     Reconnect();
 }
Beispiel #12
0
 /// <summary>
 /// </summary>
 /// <param name="sender">
 /// </param>
 /// <param name="e">
 /// </param>
 public virtual void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
 }
Beispiel #13
0
 static void OnProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     Console.WriteLine(string.Format("Protocol Error: {0}", e.Message));
 }
Beispiel #14
0
 private static void ClientOnProtocolError(object sender, IrcProtocolErrorEventArgs ircProtocolErrorEventArgs)
 {
     if (ircProtocolErrorEventArgs.Code == 433)
     {
     }
 }
 private static void ircClient2_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     // Ignore.
 }
Beispiel #16
0
 void client_ProtocolError(object sender, IrcProtocolErrorEventArgs e)
 {
     System.Console.Out.WriteLine(e.Message.ToString());
 }