void mClient_OnBan(object sender, BanEventArgs e) { AddText(string.Format("*** {0} has been banned", e.Who)); }
void onIRCBan(object sender, BanEventArgs e) { messageToVP(true, "", msgBanned, e.Who, e.Hostmask, e.Channel); }
void ClientBan (BanEventArgs e) { var channel = Server.Channel(e.Channel); if (channel != null) { if (_iam == e.Who) { channel.Connected = false; _log.Warn("banned from " + channel.Name); FireNotificationAdded(Notification.Types.ChannelBanned, channel); } else { var bot = channel.Bot(e.Who); if (bot != null) { bot.Connected = false; bot.LastMessage = "banned from " + e.Data.Channel; UpdateBot(bot); } } UpdateChannel(channel); } }
public static void OnBanMessage(object sender, BanEventArgs e) { System.Console.WriteLine("I was banned by !arrrgh " + e.Data.Nick); string a = "That was not nice. no good karma. simply because you dont like me, " + "you dont have to ban me!"; irc.SendMessage(SendType.Message, e.Data.Nick, a); }
void ClientOnBan(object sender, BanEventArgs e) { _events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Ban, Event = e }); _waitHandle.Set(); }