예제 #1
0
 static void client_Message(object sender, IrcMessageEventArgs e)
 {
     if (e.Type == IrcMessageType.Normal)
     {
         if (e.Recipent == ((IrcClient)sender).Self)
             ((IrcClient)sender).SendMessage(e.Sender, "Received: " + e.Message);
         else
             ((IrcClient)sender).SendMessage(e.Recipent, "Received: " + e.Message);
     }
     else if (e.Type == IrcMessageType.Action)
     {
         if (e.Recipent == ((IrcClient)sender).Self)
             ((IrcClient)sender).SendMessage(e.Sender, "/me received: " + e.Message);
         else
             ((IrcClient)sender).SendMessage(e.Recipent, "/me received: " + e.Message);
     }
 }
예제 #2
0
 void client_Message(object sender, IrcMessageEventArgs e)
 {
     Fire("message", e.Type.ToString(), e.Sender.Name, e.Recipent.Name, e.Message);
 }