Explorar el Código

Added reason to self kick.

tags/3.0.2^0
Teknikode hace 7 años
padre
commit
7233f64df4
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8
    1
      Modules/Moderation/Moderation.cs

+ 8
- 1
Modules/Moderation/Moderation.cs Ver fichero

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

Cargando…
Cancelar
Guardar