diff options
-rwxr-xr-x | server.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -27,7 +27,7 @@ from websock import WebSocketServer, WebSocket ## Local Modules from utils import stdout, now, clients, debug from consts import MAX_CLIENTS, PACKET_ACK -import protocol, security, player, traceback +import protocol, security, player, utils, traceback ############################################################### # Configuration @@ -220,9 +220,11 @@ try: elif cmd in ["dbg", "debug"]: if debug == 2: debug = 0 + utils.debug = 0 else: debug += 1 - stdout("Changed debug mode to %d" % debug) + utils.debug += 1 + stdout("Changed debug mode to %d" % debug, 0) elif cmd in ["raw", "eval"] and debug: try: print(eval(com)) |