From cbfcbe16f91031f6f876cbe90bb084de94a1aeac Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Fri, 3 Nov 2023 21:23:00 -0700 Subject: [PATCH] fix $inftp text message --- src/ChatCommands.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 965fad34..028d41f5 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -1210,7 +1210,7 @@ static void server_command_infinite_tp(shared_ptr c, const std::string&) check_cheats_enabled(l); c->config.toggle_flag(Client::Flag::INFINITE_TP_ENABLED); - send_text_message_printf(c, "$C6Infinite TP %s", c->config.check_flag(Client::Flag::INFINITE_HP_ENABLED) ? "enabled" : "disabled"); + send_text_message_printf(c, "$C6Infinite TP %s", c->config.check_flag(Client::Flag::INFINITE_TP_ENABLED) ? "enabled" : "disabled"); } static void proxy_command_infinite_tp(shared_ptr ses, const std::string&) { @@ -1218,7 +1218,7 @@ static void proxy_command_infinite_tp(shared_ptr ses check_proxy_cheats_allowed(s); ses->config.toggle_flag(Client::Flag::INFINITE_TP_ENABLED); send_text_message_printf(ses->client_channel, "$C6Infinite TP %s", - ses->config.check_flag(Client::Flag::INFINITE_HP_ENABLED) ? "enabled" : "disabled"); + ses->config.check_flag(Client::Flag::INFINITE_TP_ENABLED) ? "enabled" : "disabled"); } static void server_command_switch_assist(shared_ptr c, const std::string&) {