예제 #1
0
 private void ircClient_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     if (e != null)
     {
         Console.WriteLine("Connect failed: " + e.Error.Message);
     }
 }
예제 #2
0
 void IrcClient_Error(object sender, IrcErrorEventArgs e)
 {
     this.Tooltip = string.Format("twitch: error");
     this.Header  = "Error";
     MessageError("Network Irc error: " + e.Error.Message);
     StartReconnect();
 }
예제 #3
0
 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();
 }
예제 #4
0
        void client_Error(object sender, IrcErrorEventArgs e)
        {
            var error = ErrorOccurred;

            if (error != null)
            {
                error(this, e);
            }
        }
예제 #5
0
        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)})");
        }
예제 #6
0
        /// <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);
            }
        }
예제 #7
0
        private void OnError(object sender, IrcErrorEventArgs args)
        {
            _logger.Log(LogLevel.Information, args.Error, "Error!");

            if (!_client.IsConnected)
            {
                connecting = false;
            }
        }
예제 #8
0
        /// <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);
        }
예제 #9
0
        private void OnConnectFailed(IrcErrorEventArgs err)
        {
            var func = ConnectFailed;

            if (func != null)
            {
                func(this, err);
            }
        }
예제 #10
0
        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));
        }
예제 #11
0
        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
            });
        }
예제 #12
0
        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
            });
        }
예제 #13
0
 private void Irc_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     if (EnableConsoleLogging)
     {
         Console.WriteLine("Connect failed.");
     }
     if (EnableConsoleLogging)
     {
         Console.WriteLine(e.Error);
     }
 }
예제 #14
0
        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);
            }
        }
예제 #15
0
 /// <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);
 }
예제 #16
0
파일: Main.cs 프로젝트: Moones/OpenEnsage
 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);
 }
예제 #17
0
 private void OnClientConnectFailed(object sender, IrcErrorEventArgs args)
 {
     _logger.Log(LogLevel.Critical, args.Error, "connect failed");
     connecting = false;
 }
예제 #18
0
 /// <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();
 }
예제 #19
0
        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);
        }
예제 #21
0
 void Error(object sender, IrcErrorEventArgs e)
 {
     EVEFrame.Log("Error: " + e.Error.Message);
 }
예제 #22
0
 private static void ircClient2_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     if (client2ConnectedEvent != null)
         client2ConnectedEvent.Set();
 }
예제 #23
0
파일: IrcBot.cs 프로젝트: bremnes/IrcBot
 private void IrcClient_Error(object sender, IrcErrorEventArgs ircErrorEventArgs)
 {
     var client = (IrcClient)sender;
 }
예제 #24
0
        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));
        }
예제 #25
0
 /// <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;
 }
예제 #26
0
파일: Program.cs 프로젝트: ags131/ircbot
 static void irc_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     Console.WriteLine("{0}", e.Error.ToString());
 }
예제 #27
0
 void PrintMessage(object o, IrcErrorEventArgs ircErrorEventArgs)
 {
     Debug.Log("Error: " + ircErrorEventArgs.Data.ToString());
 }
예제 #28
0
 private void ircClient_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     Debug.Print("IrcClient Connection Failed: " + e.Error.Message);
     Reconnect();
 }
예제 #29
0
 private void ClientOnConnectFailed(object sender, IrcErrorEventArgs ircErrorEventArgs)
 {
     _logger.Error(ircErrorEventArgs.Error.Message);
 }
예제 #30
0
 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();
 }
예제 #32
0
 private static void ircClient2_Error(object sender, IrcErrorEventArgs e)
 {
     if (!client2ErrorEvent.SafeWaitHandle.IsClosed)
     {
         if (client2ErrorEvent != null)
             client2ErrorEvent.Set();
     }
 }
예제 #33
0
 void client_Error(object sender, IrcErrorEventArgs e)
 {
     Reconnect();
 }
예제 #34
0
 void client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
     WriteDiagnosticMessage("Connection failed: {0}", e.Error);
 }
예제 #35
0
 /// <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);
 }
예제 #37
0
 private void OnConnectFailed(object sender, IrcErrorEventArgs e)
 {
     IsConnecting = false;
 }
예제 #38
0
 void Client_ConnectFailed(object sender, IrcErrorEventArgs e)
 {
 }
예제 #39
0
 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);
     }
 }