Browse Source

Added reason to self kick.

tags/3.0.2^0
Teknikode 4 years ago
parent
commit
7233f64df4
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      Modules/Moderation/Moderation.cs

+ 8
- 1
Modules/Moderation/Moderation.cs View File

@@ -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