Skip to content

Commit

Permalink
Fix server crash when querying game mode !build !macos
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Sep 1, 2023
1 parent c78b10a commit acd9aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/stdinhand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4002,6 +4002,7 @@ static bool switch_command(struct connection *caller, char *str, bool check)
if (arg.count() == 0) {
cmd_reply(CMD_SWITCH, caller, C_SYNTAX, _("Current mode: %s"),
game.info.game_mode == RS_GAME_MODE_ACTIVE ? "active" : "passive");
return true;
} else if(arg.count() > 1) {
cmd_reply(CMD_SWITCH, caller, C_SYNTAX, _("Usage:\n%s"),
command_synopsis(command_by_number(CMD_SWITCH)));
Expand Down

0 comments on commit acd9aae

Please sign in to comment.