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:
nyuszika7h 2015-11-13 20:19:49 +01:00
parent e54630e902
commit 2cf3bfe811
2 changed files with 1 additions and 3 deletions

View File

@ -28,8 +28,6 @@ OWNERS_ACCOUNTS = ("1owner_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
ALT_CHANNELS = ""

View File

@ -54,7 +54,7 @@ if args.debug: debug_mode = True
if args.verbose: verbose = 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
# Initialize Database