fix bug where you could fdeny the same command multiple times if done by host

This commit is contained in:
jacob1 2015-08-14 01:30:42 -04:00
parent b936a4d3c5
commit 835441caea

View File

@ -7347,7 +7347,7 @@ def allow_deny(cli, nick, chan, rest, mode):
command = command[len(botconfig.CMD_CHAR):]
if not rem:
if command in COMMANDS and command not in ("fdeny", "fallow", "fsend", "exec", "eval"):
if command in COMMANDS and command not in ("fdeny", "fallow", "fsend", "exec", "eval") and command not in variable[cloak]:
variable[cloak].append(command)
if mode == "allow":
var.add_allow(cloak, command)