Exemple #1
0
 private void UserPartedChannel(object sender, ChannelUserEventArgs args)
 {
     if (args.User.Nick != this.Nick)
     {
         Logger.Log(string.Format("{0} has left {1}", args.User.Nick, args.Channel.Name));
         Logger.WriteChannelLog(args.User.Nick, "has left the channel", args.Channel.Name);
         ModuleHandler.OnUserLeave(args.User.Nick, args.Channel.Name);
     }
 }
Exemple #2
0
        private void ConnectionComplete(object sender, EventArgs args)
        {
            ModuleHandler.LoadModules((IrcClient)sender);

            foreach (string channel in Channels)
            {
                Client.JoinChannel(channel);
            }
        }
Exemple #3
0
 private static void ChannelMessageReceived(object sender, PrivateMessageEventArgs args)
 {
     Logger.Log(string.Format("{0}: <{1}> {2}", args.PrivateMessage.Source, args.PrivateMessage.User.Nick, args.PrivateMessage.Message));
     if (IsUser(args.PrivateMessage.Source))
     {
         Logger.WriteChannelLog(args.PrivateMessage.User.Nick, args.PrivateMessage.Message, args.PrivateMessage.User.Nick);
     }
     else
     {
         Logger.WriteChannelLog(args.PrivateMessage.User.Nick, args.PrivateMessage.Message, args.PrivateMessage.Source);
     }
     ModuleHandler.OnMessageReceived(args.PrivateMessage.User.Nick, args.PrivateMessage.Message, args.PrivateMessage.Source);
 }
Exemple #4
0
 private static void UserMessageReceived(object sender, PrivateMessageEventArgs args)
 {
     Logger.Log(string.Format("<{0}> {1}", args.PrivateMessage.User.Nick, args.PrivateMessage.Message));
     ModuleHandler.OnMessageReceived(args.PrivateMessage.User.Nick, args.PrivateMessage.Message);
     ModuleHandler.OnMessageReceived(args.PrivateMessage.User.Nick, args.PrivateMessage.Message, args.PrivateMessage.User.Nick);
 }