From a8f888b82910fd50e353bf178cac684e624eef27 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sat, 1 Oct 2022 00:54:10 -0700 Subject: [PATCH] fix $event condition on BB --- src/ChatCommands.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ChatCommands.cc b/src/ChatCommands.cc index 482cc9fc..6ee0fa28 100644 --- a/src/ChatCommands.cc +++ b/src/ChatCommands.cc @@ -320,10 +320,9 @@ static void proxy_command_lobby_event(shared_ptr, send_text_message(session.client_channel, u"$C6No such lobby event."); } else { session.override_lobby_event = new_event; - if (((session.version == GameVersion::GC) || - (session.version == GameVersion::XB) || - (session.version == GameVersion::BB)) && - !(session.newserv_client_config.cfg.flags & Client::Flag::IS_TRIAL_EDITION)) { + if ((session.version == GameVersion::GC && !(session.newserv_client_config.cfg.flags & Client::Flag::IS_TRIAL_EDITION)) || + (session.version == GameVersion::XB) || + (session.version == GameVersion::BB)) { session.client_channel.send(0xDA, session.override_lobby_event); } }