void ClientKick(KickEventArgs e)
{
var channel = Server.Channel(e.Data.Channel);
if (channel != null)
{
if (_iam == e.Whom)
{
channel.Connected = false;
_log.Warn("kicked from " + channel.Name + " (" + e.KickReason + ")");
FireNotificationAdded(Notification.Types.ChannelKicked, channel);
}
else
{
var bot = channel.Bot(e.Whom);
if (bot != null)
{
bot.Connected = false;
bot.LastMessage = "kicked from " + e.Channel;
UpdateBot(bot);
}
}
UpdateChannel(channel);
}
}