Example #1
0
 void OnUserModeChangeHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnUserModeChange != null)
     {
         OnUserModeChange((Network)sender, e);
     }
 }
Example #2
0
 void OnQueryNoticeHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnQueryNotice != null)
     {
         OnQueryNotice((Network)sender, e);
     }
 }
Example #3
0
 void OnRawMessageHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnRawMessage != null)
     {
         OnRawMessage((Network)sender, e);
     }
 }
Example #4
0
 void OnCtcpReplyHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnCtcpReply != null)
     {
         OnCtcpReply((Network)sender, e);
     }
 }
Example #5
0
 void OnCtcpRequestHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnCtcpRequest != null)
     {
         OnCtcpRequest((Network)sender, e);
     }
 }
Example #6
0
 void OnChannelPassiveSyncedHandler(object sender, Irc.IrcEventArgs e)
 {
     if (OnChannelPassiveSynced != null)
     {
         OnChannelPassiveSynced((Network)sender, e);
     }
 }
Example #7
0
 protected internal static void Answer(Network n, Irc.IrcEventArgs e, string s)
 {
     if (e.Data.Type == Irc.ReceiveType.QueryMessage)
     {
         n.SendMessage(Abbot.Irc.SendType.Message, e.Data.Nick, s);
     }
     else
     {
         n.SendMessage(Abbot.Irc.SendType.Message, e.Data.Channel, s);
     }
 }
Example #8
0
 protected internal static void AnswerWithNotice(Network n, Irc.IrcEventArgs e, string s)
 {
     n.SendMessage(Abbot.Irc.SendType.Notice, e.Data.Nick, s);
 }
Example #9
0
 void Bot_OnRawMessage(Network network, Irc.IrcEventArgs e)
 {
     Console.WriteLine(e.Data.RawMessage);
 }
Example #10
0
 static void bot_OnRawMessage(Network sender, IrcEventArgs e)
 {
     Console.WriteLine(e.Data.Nick + ": " + e.Data.Message);
 }