void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { this.Tooltip = string.Format("twitch: error"); this.Header = "Proto Error"; MessageError("IRC error: " + e.Message); StartReconnect(); }
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); }
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; } }
/// <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))); }
private void ircClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { Debug.Print("IrcClient Protocol Error Exception: " + e.Message); Reconnect(); }
/// <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) { }
void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { // this.Header = string.Format( "twitch: error" ); // MessageError( "IRC error: " + e.Message ); // StartReconnect(); }
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))); }
void client_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { Reconnect(); }
/// <summary> /// </summary> /// <param name="sender"> /// </param> /// <param name="e"> /// </param> public virtual void IrcClient_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { }
static void OnProtocolError(object sender, IrcProtocolErrorEventArgs e) { Console.WriteLine(string.Format("Protocol Error: {0}", e.Message)); }
private static void ClientOnProtocolError(object sender, IrcProtocolErrorEventArgs ircProtocolErrorEventArgs) { if (ircProtocolErrorEventArgs.Code == 433) { } }
private static void ircClient2_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { // Ignore. }
void client_ProtocolError(object sender, IrcProtocolErrorEventArgs e) { System.Console.Out.WriteLine(e.Message.ToString()); }