Make server name learning opt-in to avoid lagging the game server
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
@@ -413,7 +413,8 @@ def main_loop(screen, args):
|
||||
ui.print_message(f"^3[^7{timestamp}^3]^7 Requesting connection info...\n")
|
||||
rcon.send_command(b'zmq_stats_password')
|
||||
rcon.send_command(b'net_port')
|
||||
name_capture.request(rcon)
|
||||
if args.learn_names:
|
||||
name_capture.request(rcon)
|
||||
elif monitor_event and monitor_event[0] == zmq.EVENT_DISCONNECTED:
|
||||
timestamp = time.strftime('%H:%M:%S')
|
||||
ui.print_message(f"^3[^7{timestamp}^3] ^8^1Disconnected from server - waiting for reconnect...^0^7\n")
|
||||
@@ -612,6 +613,7 @@ if __name__ == '__main__':
|
||||
# Apply config settings to args
|
||||
args.config_log_level = config.get_log_level()
|
||||
args.max_history = config.get_max_history(MAX_COMMAND_HISTORY)
|
||||
args.learn_names = config.get_bool('behavior', 'learn_names', False)
|
||||
|
||||
# Handle --list
|
||||
if args.list:
|
||||
|
||||
Reference in New Issue
Block a user