From 89539ae817fe2851ff82927f4801efedf93de842 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 24 Mar 2026 15:56:56 +0000 Subject: [PATCH] mv CMD_CONFIG --- src/q3rcon_cli/cli.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/q3rcon_cli/cli.py b/src/q3rcon_cli/cli.py index 2bb5d92..c4598dd 100644 --- a/src/q3rcon_cli/cli.py +++ b/src/q3rcon_cli/cli.py @@ -86,19 +86,19 @@ class Q3rconCli(Command): clypi.style('to quit.', fg='blue'), ) + CMD_CONFIG = { + 'status': (2, 1, False), + 'fast_restart': (3, 1, True), + 'map_restart': (3, 1, True), + 'map': (3, 1, True), + 'map_rotate': (3, 1, True), + } DEFAULT_TIMEOUT = 2 DEFAULT_FRAGMENT_READ_TIMEOUT = 0.25 while command := input(clypi.style('cmd: ', fg='green')): if command.lower() == 'q': break - CMD_CONFIG = { - 'status': (2, 1, False), - 'fast_restart': (3, 1, True), - 'map_restart': (3, 1, True), - 'map': (3, 1, True), - 'map_rotate': (3, 1, True), - } timeout, fragment_read_timeout, interpret = CMD_CONFIG.get( command.split()[0].lower(), (DEFAULT_TIMEOUT, DEFAULT_FRAGMENT_READ_TIMEOUT, False),