瀏覽代碼

Added reason to self kick.

tags/3.0.2^0
Teknikode 7 年之前
父節點
當前提交
7233f64df4
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. 8
    1
      Modules/Moderation/Moderation.cs

+ 8
- 1
Modules/Moderation/Moderation.cs 查看文件

@@ -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…
取消
儲存