Disallow fallowing fsend

!fsend is a very dangerous command if abused (up there with exec), and
should be properly admin-only instead of allowed to be given out to
non-admins. Unlike fsay/fact, there is no easy way to restrict fsend
when a non-admin uses it.
This commit is contained in:
skizzerz 2015-06-25 13:02:51 -05:00
parent 4e53a3556b
commit 2274e945a0

View File

@ -6447,7 +6447,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", "exec", "eval") and command not in variable[acc]:
if command in COMMANDS and command not in ("fdeny", "fallow", "fsend", "exec", "eval") and command not in variable[acc]:
variable[acc].append(command)
if mode == "allow":
var.add_allow_acc(acc, command)
@ -6502,7 +6502,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", "exec", "eval"):
if command in COMMANDS and command not in ("fdeny", "fallow", "fsend", "exec", "eval"):
variable[cloak].append(command)
if mode == "allow":
var.add_allow(cloak, command)