Remove useless DISABLE_DEBUG_MODE option
There is no point in this whatsoever; admins can do !frestart debugmode but that cannot lead to privilege escalation as !eval and !exec are owner-only and !fallow won't work on them either.
This commit is contained in:
parent
e54630e902
commit
2cf3bfe811
@ -28,8 +28,6 @@ OWNERS_ACCOUNTS = ("1owner_acc",)
|
|||||||
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
|
ADMINS_ACCOUNTS = ("1admin_acc", "2admin_acc")
|
||||||
|
|
||||||
|
|
||||||
DISABLE_DEBUG_MODE = False # Entirely disable debug mode
|
|
||||||
|
|
||||||
ALLOWED_NORMAL_MODE_COMMANDS = [] # Debug mode commands to be allowed in normal mode
|
ALLOWED_NORMAL_MODE_COMMANDS = [] # Debug mode commands to be allowed in normal mode
|
||||||
|
|
||||||
ALT_CHANNELS = ""
|
ALT_CHANNELS = ""
|
||||||
|
@ -54,7 +54,7 @@ if args.debug: debug_mode = True
|
|||||||
if args.verbose: verbose = True
|
if args.verbose: verbose = True
|
||||||
if args.normal: normal = True
|
if args.normal: normal = True
|
||||||
|
|
||||||
botconfig.DEBUG_MODE = debug_mode if not botconfig.DISABLE_DEBUG_MODE and not normal else False
|
botconfig.DEBUG_MODE = debug_mode if not normal else False
|
||||||
botconfig.VERBOSE_MODE = verbose if not normal else False
|
botconfig.VERBOSE_MODE = verbose if not normal else False
|
||||||
|
|
||||||
# Initialize Database
|
# Initialize Database
|
||||||
|
Loading…
x
Reference in New Issue
Block a user