Browse Source

Added reason to self kick.

pull/15/head 3.0.2
Teknikode 7 years ago
parent
commit
7233f64df4
  1. 9
      Modules/Moderation/Moderation.cs

9
Modules/Moderation/Moderation.cs

@ -348,7 +348,14 @@ namespace Combot.Modules.Plugins @@ -348,7 +348,14 @@ namespace Combot.Modules.Plugins
private void KickSelf(CommandMessage command)
{
string channel = command.Arguments.ContainsKey("Channel") ? command.Arguments["Channel"] : command.Location;
Bot.IRC.Command.SendKick(channel, command.Nick.Nickname);
if (command.Arguments.ContainsKey("Reason"))
{
Bot.IRC.Command.SendKick(channel, command.Nick.Nickname, command.Arguments["Reason"]);
}
else
{
Bot.IRC.Command.SendKick(channel, command.Nick.Nickname);
}
}
private void ClearChannel(Command curCommand, CommandMessage command)

Loading…
Cancel
Save