public override void Hook_Kick(wmib.Channel channel, libirc.UserInfo source, string user) { if (GetConfig(channel, "Logging.Enabled", false)) { Item item = new Item(); item.channel = channel; item.act = false; item.message = source.Nick; item.time = DateTime.Now; item.type = 4; item.username = user; lock (DJ) { DJ.Add(item); } } }
/// <summary> /// Someone is kicked /// </summary> /// <param name="channel"></param> /// <param name="source"></param> /// <param name="user"></param> public virtual void Hook_Kick(wmib.Channel channel, libirc.UserInfo source, string user) { }
public override void Hook_Kick(wmib.Channel channel, libirc.UserInfo source, string user) { if (GetConfig(channel, "Logging.Enabled", false)) { Item item = new Item { channel = channel, act = false, host = source.Host, message = source.Nick, time = DateTime.Now, type = 4, username = user }; lock (DJ) { DJ.Add(item); } } }