fix bug with debug mode and allowing commands
This commit is contained in:
parent
a4c16e6c20
commit
03cef5c7b2
@ -14,7 +14,7 @@ IGNORE_HIDDEN_COMMANDS = True # Ignore commands sent to @#channel or +#channel
|
|||||||
ALLOW_NOTICE_COMMANDS = False # allow /notice #channel !command to be interpreted as a command
|
ALLOW_NOTICE_COMMANDS = False # allow /notice #channel !command to be interpreted as a command
|
||||||
ALLOW_PRIVATE_NOTICE_COMMANDS = False # allow !command's from /notice (Private)
|
ALLOW_PRIVATE_NOTICE_COMMANDS = False # allow !command's from /notice (Private)
|
||||||
|
|
||||||
ALLOWED_NORMAL_MODE_COMMANDS = []
|
ALLOWED_NORMAL_MODE_COMMANDS = [] # debug mode commands to be allowed in normal mode
|
||||||
|
|
||||||
OWNERS = ("unaffiliated/wolfbot_admin1",) # the comma is required at the end if there is one owner
|
OWNERS = ("unaffiliated/wolfbot_admin1",) # the comma is required at the end if there is one owner
|
||||||
ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob syntax supported (wildcards)
|
ADMINS = ("unaffiliated/wolfbot_admin2", "unaffiliated/wolfbot_admin3") # glob syntax supported (wildcards)
|
||||||
|
@ -2888,7 +2888,7 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
|
|||||||
if var.PHASE not in ('none','join'):
|
if var.PHASE not in ('none','join'):
|
||||||
chk_win(cli)
|
chk_win(cli)
|
||||||
|
|
||||||
if botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
|
if botconfig.ALLOWED_NORMAL_MODE_COMMANDS and not botconfig.DEBUG_MODE:
|
||||||
for comd in list(COMMANDS.keys()):
|
for comd in list(COMMANDS.keys()):
|
||||||
if (comd not in before_debug_mode_commands and
|
if (comd not in before_debug_mode_commands and
|
||||||
comd not in botconfig.ALLOWED_NORMAL_MODE_COMMANDS):
|
comd not in botconfig.ALLOWED_NORMAL_MODE_COMMANDS):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user