!die: Fix first word of message being cut off in debug mode

This commit is contained in:
nyuszika7h 2016-12-11 10:24:35 +01:00
parent 06486e14bd
commit 218366cbd8

View File

@ -366,14 +366,15 @@ def forced_exit(cli, nick, chan, rest): # XXX: sighandler (top of file) also nee
args = rest.split()
# Force in debug mode by default
force = botconfig.DEBUG_MODE
if args and args[0] == "-dirty":
# use as a last resort
os.abort()
elif botconfig.DEBUG_MODE or (args and args[0] == "-force"):
elif args and args[0] == "-force":
force = True
rest = " ".join(args[1:])
else:
force = False
if var.PHASE in var.GAME_PHASES:
if var.PHASE == "join" or force or nick == "<console>":