From 2274e945a0e1b8085b1b9b2e6b547a9e7b10f980 Mon Sep 17 00:00:00 2001 From: skizzerz Date: Thu, 25 Jun 2015 13:02:51 -0500 Subject: [PATCH] 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. --- src/wolfgame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index b710b69..6822c74 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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)