Пример #1
0
        protected void OnResponseReceived(IrcResponse resp)
        {
            IrcResponseEventArgs e = new IrcResponseEventArgs(resp);

            if (ResponseReceived != null)
            {
                ResponseReceived.Invoke(this, e);
            }
        }
Пример #2
0
        protected void OnStandardReplyReceived(IrcResponse resp)
        {
            IrcResponseEventArgs e = new IrcResponseEventArgs(resp);

            if (StandardReplyReceived != null)
            {
                StandardReplyReceived.Invoke(this, e);
            }
            if (resp.Source.Equals("PING", StringComparison.OrdinalIgnoreCase))
            {
                Pong(resp);
            }
        }
Пример #3
0
        protected void OnNumericReplyReceived(IrcResponse resp)
        {
            IrcResponseEventArgs e = new IrcResponseEventArgs(resp);

            if (NumericReplyReceived != null)
            {
                NumericReplyReceived.Invoke(this, e);
            }
            switch (resp.NumericReply)
            {
            case IrcReplyCode.RPL_MYINFO:
                _registeredLock.Set();
                break;
            }
        }
Пример #4
0
 protected void OnStandardReplyReceived(IrcResponse resp)
 {
     IrcResponseEventArgs e = new IrcResponseEventArgs(resp);
     if (StandardReplyReceived != null)
         StandardReplyReceived.Invoke(this, e);
     if (resp.Source.Equals("PING", StringComparison.OrdinalIgnoreCase))
         Pong(resp);
 }
Пример #5
0
 protected void OnResponseReceived(IrcResponse resp)
 {
     IrcResponseEventArgs e = new IrcResponseEventArgs(resp);
     if (ResponseReceived != null)
         ResponseReceived.Invoke(this, e);
 }
Пример #6
0
 protected void OnNumericReplyReceived(IrcResponse resp)
 {
     IrcResponseEventArgs e = new IrcResponseEventArgs(resp);
     if (NumericReplyReceived != null)
         NumericReplyReceived.Invoke(this, e);
     switch (resp.NumericReply)
     {
         case IrcReplyCode.RPL_MYINFO:
             _registeredLock.Set();
             break;
     }
 }
Пример #7
0
 static void bot_StandardReplyReceived(object sender, IrcResponseEventArgs e)
 {
     _log.Debug("Standard reply: " + e.Response.Raw);
 }
Пример #8
0
 static void bot_NumericReplyReceived(object sender, IrcResponseEventArgs e)
 {
     _log.Debug("Numeric reply: " + e.Response.Raw);
 }
Пример #9
0
 static void bot_StandardReplyReceived(object sender, IrcResponseEventArgs e)
 {
     _log.Debug("Standard reply: " + e.Response.Raw);
 }
Пример #10
0
 static void bot_NumericReplyReceived(object sender, IrcResponseEventArgs e)
 {
     _log.Debug("Numeric reply: " + e.Response.Raw);
 }