private void ircClient_ConnectFailed(object sender, IrcErrorEventArgs e) { if (e != null) { Console.WriteLine("Connect failed: " + e.Error.Message); } }
void IrcClient_Error(object sender, IrcErrorEventArgs e) { this.Tooltip = string.Format("twitch: error"); this.Header = "Error"; MessageError("Network Irc error: " + e.Error.Message); StartReconnect(); }
void IrcClient_ConnectFailed(object sender, IrcErrorEventArgs e) { this.Tooltip = string.Format("twitch: invalid login"); this.Header = "Invalid name"; MessageError("Invalid login: " + e.Error.Message); StartReconnect(); }
void client_Error(object sender, IrcErrorEventArgs e) { var error = ErrorOccurred; if (error != null) { error(this, e); } }
private void OnError(object sender, IrcErrorEventArgs e) { if (e.Error == IrcReplyCode.MissingMOTD) { return; } Log.WriteError(nameof(IRC), $"Error: {e.Error} ({string.Join(", ", e.Data.Parameters)})"); }
/// <summary> /// Raises the <see cref="Error"/> event. /// </summary> /// <param name="e">The <see cref="IrcErrorEventArgs"/> instance containing the event data.</param> protected virtual void OnError(IrcErrorEventArgs e) { var handler = this.Error; if (handler != null) { handler(this, e); } }
private void OnError(object sender, IrcErrorEventArgs args) { _logger.Log(LogLevel.Information, args.Error, "Error!"); if (!_client.IsConnected) { connecting = false; } }
/// <summary> /// Executed when IRC client connect failed. /// Beware: This is executed by a different thread. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnIrcClientConnectFailed(object sender, IrcErrorEventArgs e) { // close connection and exit ServerConnection.Disconnect(); IsRunning = false; IrcChannel = null; Log("ERROR", LOG_IRCCONNECTERROR); }
private void OnConnectFailed(IrcErrorEventArgs err) { var func = ConnectFailed; if (func != null) { func(this, err); } }
private void OnError(object sender, IrcErrorEventArgs e) { switch (e.Error) { case IrcReplyCode.MissingMOTD: return; } Log.WriteError("IRC", "Error: {0} ({1})", e.Error.ToString(), string.Join(", ", e.Data.Parameters)); }
private void Client_ConnectFailed(object sender, IrcErrorEventArgs e) { var network = NetworkFromIrcClient(sender as StandardIrcClient); BroadcastMessageToNetwork(network, new Message() { From = network.Name, Text = $"Connect failed", Type = MessageType.System }); }
private void Client_Error(object sender, IrcErrorEventArgs e) { var network = NetworkFromIrcClient(sender as StandardIrcClient); network.Messages.Add(new Message() { From = network.Client.ServerName, Text = $"Client Error: {e.Error.Message} {e.Error.StackTrace}", Type = MessageType.System }); }
private void Irc_ConnectFailed(object sender, IrcErrorEventArgs e) { if (EnableConsoleLogging) { Console.WriteLine("Connect failed."); } if (EnableConsoleLogging) { Console.WriteLine(e.Error); } }
private void OnIrcError(object sender, IrcErrorEventArgs e) { if (e.Error != IrcReplyCode.NoSuchNickname) { return; } var nickname = e.Data.Parameters[1]; if (!Pending.TryGetValue(nickname, out var data)) { return; } Pending.Remove(nickname); foreach (var callback in data.Callbacks) { callback.Invoke(data); } }
/// <summary> /// IRC event: the IRC client library has encountered an error. /// </summary> private void Client_Error(object sender, IrcErrorEventArgs e) { TmiLog.Error("Error in client: " + e.Error.Message); }
private void _ircClient_GotIrcError(object sender, IrcErrorEventArgs e) { statusBox.Items.Add("IRC error: " + e.Error); if (e.Data.ReplyCode != IrcReplyCode.NicknameInUse) return; _ircNickname = Program.AccountName + "_" + (new Random().Next(0, 1000)).ToString(); // AFFSD BEGIN AFFSD END statusBox.Items.Add("Retrying with a new nickname \"" + _ircNickname + "\" ..."); _ircClient.ChangeName(_ircNickname); }
private void OnClientConnectFailed(object sender, IrcErrorEventArgs args) { _logger.Log(LogLevel.Critical, args.Error, "connect failed"); connecting = false; }
/// <summary> /// IRC event: failed to establish a connection to the server (pre auth). /// </summary> private void Client_ConnectFailed(object sender, IrcErrorEventArgs e) { TmiLog.Error($"Connection to Twitch IRC failed: {e.Error}"); Stop(); }
async void client_ConnectFailed(object sender, IrcErrorEventArgs e) { await Task.Delay(1000); Connect(); }
private static void ircClient1_Error(object sender, IrcErrorEventArgs e) { if (client1ErrorEvent != null) client1ErrorEvent.Set(); Debug.Assert(false, "Protocol error: " + e.Error.Message); }
void Error(object sender, IrcErrorEventArgs e) { EVEFrame.Log("Error: " + e.Error.Message); }
private static void ircClient2_ConnectFailed(object sender, IrcErrorEventArgs e) { if (client2ConnectedEvent != null) client2ConnectedEvent.Set(); }
private void IrcClient_Error(object sender, IrcErrorEventArgs ircErrorEventArgs) { var client = (IrcClient)sender; }
/// <summary> /// This is called when IrcDotNet hits an exception. We will reset the connection with a new /// IrcDotNet instance. In practice, this should never happen. /// </summary> void m_client_ErrorOccurred(TwitchClient sender, IrcErrorEventArgs error) { m_error = true; }
static void irc_ConnectFailed(object sender, IrcErrorEventArgs e) { Console.WriteLine("{0}", e.Error.ToString()); }
void PrintMessage(object o, IrcErrorEventArgs ircErrorEventArgs) { Debug.Log("Error: " + ircErrorEventArgs.Data.ToString()); }
private void ircClient_ConnectFailed(object sender, IrcErrorEventArgs e) { Debug.Print("IrcClient Connection Failed: " + e.Error.Message); Reconnect(); }
private void ClientOnConnectFailed(object sender, IrcErrorEventArgs ircErrorEventArgs) { _logger.Error(ircErrorEventArgs.Error.Message); }
private void ircClient_Error(object sender, IrcErrorEventArgs e) { Debug.Print("IrcClient Error: " + e.Error.Message); Reconnect(); }
private static void ircClient2_Error(object sender, IrcErrorEventArgs e) { if (client2ErrorEvent != null) client2ErrorEvent.Set(); }
private static void ircClient2_Error(object sender, IrcErrorEventArgs e) { if (!client2ErrorEvent.SafeWaitHandle.IsClosed) { if (client2ErrorEvent != null) client2ErrorEvent.Set(); } }
void client_Error(object sender, IrcErrorEventArgs e) { Reconnect(); }
void client_ConnectFailed(object sender, IrcErrorEventArgs e) { WriteDiagnosticMessage("Connection failed: {0}", e.Error); }
/// <summary> /// Raises the <see cref="Error"/> event. /// </summary> /// <param name="e">The <see cref="EventArgs"/> instance holding the event data.</param> internal void OnError(IrcErrorEventArgs e) { Error?.Invoke(this, e); }
/// <summary> /// Raises the <see cref="Error"/> event. /// </summary> /// <param name="e">The <see cref="IrcErrorEventArgs"/> instance containing the event data.</param> protected virtual void OnError(IrcErrorEventArgs e) { var handler = this.Error; if (handler != null) handler(this, e); }
private void OnConnectFailed(object sender, IrcErrorEventArgs e) { IsConnecting = false; }
void Client_ConnectFailed(object sender, IrcErrorEventArgs e) { }
private static void OnIrcError(object sender, IrcErrorEventArgs ircErrorEventArgs) { var information = MethodBase.GetCurrentMethod().Name; try { var serverUser = GetServerUser(sender); var parameters = string.Join(" ", ircErrorEventArgs.Data.Parameters); Debug.WriteLine(string.Format("ON_IRC_ERROR, Parameters: {0}", parameters), serverUser.ToString()); } catch (Exception ex) { Console.WriteLine("{0} exception {1}", information, ex.Message); } }