Don't require -force for !fdie and !frestart in debug mode

This commit is contained in:
nyuszika7h 2016-07-21 23:07:01 +02:00
parent e04410ecaa
commit bc9f27c6d5

View File

@ -460,7 +460,7 @@ def forced_exit(cli, nick, chan, rest):
args = rest.split()
if args and args[0] == "-force":
if botconfig.DEBUG_MODE or (args and args[0] == "-force"):
force = True
rest = " ".join(args[1:])
else:
@ -521,7 +521,7 @@ def restart_program(cli, nick, chan, rest):
args = rest.split()
if args and args[0] == "-force":
if botconfig.DEBUG_MODE or (args and args[0] == "-force"):
force = True
rest = " ".join(args[1:])
else: