Inheritance: IrcEventArgs
Example #1
0
 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);
 }
Example #3
0
		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);
			}
		}
Example #4
0
 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);
 }
Example #5
0
		void ClientOnBan(object sender, BanEventArgs e)
		{
			_events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Ban, Event = e });
			_waitHandle.Set();
		}