Exemplo n.º 1
0
 void _ircClient_OnQueryNotice(object sender, SIRC4N.IrcEventArgs e)
 {
     if (SupportsIdentification && NoticeIsExpectedServicesAgentMessage(e.Data.Nick, e.Data.Message))
     {
         JoinChannelsForNetwork();
     }
 }
Exemplo n.º 2
0
        void _ircClient_OnQueryMessage(object sender, SIRC4N.IrcEventArgs e)
        {
            var user = new User
            {
                NickName = e.Data.Nick,
                HostName = e.Data.Host
            };

            OnPrivateMessageReceived(user, e.Data.Message);
        }
Exemplo n.º 3
0
        void _ircClient_OnChannelMessage(object sender, SIRC4N.IrcEventArgs e)
        {
            var user = new User
            {
                NickName = e.Data.Nick,
                HostName = e.Data.Host
            };

            OnPublicMessageReceived(user, e.Data.Channel, e.Data.Message);
        }
Exemplo n.º 4
0
        void _ircClient_OnQueryAction(object sender, SIRC4N.ActionEventArgs e)
        {
            var user = new User
            {
                NickName = e.Data.Nick,
                HostName = e.Data.Host
            };

            OnPrivateActionReceived(user, e.Data.Message.Substring(8, e.Data.Message.Length - 9));
        }
Exemplo n.º 5
0
 void _ircClient_OnRawMessage(object sender, SIRC4N.IrcEventArgs e)
 {
     if (_ircClient.IsMe(e.Data.From))
     {
         if (_logger.IsTraceEnabled)
         {
             _logger.TraceFormat("Sent: {0}", e.Data.RawMessage);
         }
     }
     else
     {
         if (_logger.IsTraceEnabled)
         {
             _logger.TraceFormat("Received: {0}", e.Data.RawMessage);
         }
     }
 }