Don't require -force for !fdie and !frestart in debug mode
This commit is contained in:
parent
e04410ecaa
commit
bc9f27c6d5
@ -460,7 +460,7 @@ def forced_exit(cli, nick, chan, rest):
|
|||||||
|
|
||||||
args = rest.split()
|
args = rest.split()
|
||||||
|
|
||||||
if args and args[0] == "-force":
|
if botconfig.DEBUG_MODE or (args and args[0] == "-force"):
|
||||||
force = True
|
force = True
|
||||||
rest = " ".join(args[1:])
|
rest = " ".join(args[1:])
|
||||||
else:
|
else:
|
||||||
@ -521,7 +521,7 @@ def restart_program(cli, nick, chan, rest):
|
|||||||
|
|
||||||
args = rest.split()
|
args = rest.split()
|
||||||
|
|
||||||
if args and args[0] == "-force":
|
if botconfig.DEBUG_MODE or (args and args[0] == "-force"):
|
||||||
force = True
|
force = True
|
||||||
rest = " ".join(args[1:])
|
rest = " ".join(args[1:])
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user