protected override void __evt_KICK(NetworkKickEventArgs args) { if (args.ChannelName == Configuration.System.DebugChan && this.instance != Instance.PrimaryInstance) { return; } Channel channel = Core.GetChannel(args.ChannelName); if (channel == null) { return; } SystemHooks.IrcKick(channel, args.SourceInfo, args.Target); if (this.Nickname.ToLower() == args.Target.ToLower()) { Syslog.Log("I was kicked from " + args.ChannelName + " by " + args.SourceInfo.Nick + " with kick message: " + args.Message); lock (Configuration.Channels) { if (Configuration.Channels.Contains(channel)) { Configuration.Channels.Remove(channel); } } Configuration.Save(); } }
public override void __evt_KICK(NetworkKickEventArgs args) { if (args.ChannelName == Configuration.System.DebugChan && this.instance != Instance.PrimaryInstance) return; Channel channel = Core.GetChannel(args.ChannelName); if (channel == null) return; SystemHooks.IrcKick(channel, args.SourceInfo, args.Target); if (this.Nickname.ToLower() == args.Target.ToLower()) { Syslog.Log("I was kicked from " + args.ChannelName + " by " + args.SourceInfo.Nick + " because of: " + args.Message); lock(Configuration.Channels) { if (Configuration.Channels.Contains(channel)) { Configuration.Channels.Remove(channel); Configuration.Save(); } } } }
protected internal virtual void __evt_KICK(NetworkKickEventArgs args) { if (this.On_KICK != null) this.On_KICK(this, args); }