Esempio n. 1
0
 public void MessageEventHandler(object sender, MessageEvent e)
 {
     if (e.IsTargetChannel)
         Console.WriteLine("MSG to {0} by {1}: {2}", e.Target, e.User, e.Message);
     else
         Console.WriteLine("PRIVMSG by {0}: {1}", e.Target, e.Message);
 }
Esempio n. 2
0
 public static void PostMessageEvent(MessageEvent e)
 {
     if (MessageEvent != null)
         MessageEvent(new object(), e);
 }