Inheritance: IrcEventArgs
コード例 #1
0
ファイル: ChatUI.cs プロジェクト: Quintinon/outwar-dca
 void mClient_OnBan(object sender, BanEventArgs e)
 {
     AddText(string.Format("*** {0} has been banned", e.Who));
 }
コード例 #2
0
 void onIRCBan(object sender, BanEventArgs e)
 {
     messageToVP(true, "", msgBanned, e.Who, e.Hostmask, e.Channel);
 }
コード例 #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);
			}
		}
コード例 #4
0
ファイル: Program.cs プロジェクト: novalis78/prelude-irc
 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);
 }
コード例 #5
0
		void ClientOnBan(object sender, BanEventArgs e)
		{
			_events.Enqueue(new IrcEvent { Type = IrcEvent.EventType.Ban, Event = e });
			_waitHandle.Set();
		}