From 218366cbd8180cbe8e0f0bb2fe919f8bb521d4a8 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Sun, 11 Dec 2016 10:24:35 +0100 Subject: [PATCH] !die: Fix first word of message being cut off in debug mode --- src/wolfgame.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wolfgame.py b/src/wolfgame.py index 25031de..ad58b6d 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -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 == "":