protected void OnResponseReceived(IrcResponse resp) { IrcResponseEventArgs e = new IrcResponseEventArgs(resp); if (ResponseReceived != null) { ResponseReceived.Invoke(this, e); } }
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); } }
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; } }
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); }
protected void OnResponseReceived(IrcResponse resp) { IrcResponseEventArgs e = new IrcResponseEventArgs(resp); if (ResponseReceived != null) ResponseReceived.Invoke(this, e); }
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; } }
static void bot_StandardReplyReceived(object sender, IrcResponseEventArgs e) { _log.Debug("Standard reply: " + e.Response.Raw); }
static void bot_NumericReplyReceived(object sender, IrcResponseEventArgs e) { _log.Debug("Numeric reply: " + e.Response.Raw); }