Skip to content

Commit f9f0d11

Browse files
xen-000Vauff
authored andcommitted
Use slot -1 for rcon ConCommands
1 parent d37207f commit f9f0d11

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/adminsystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ CON_COMMAND_CHAT_FLAGS(rcon, "<command> - Send a command to server console", ADM
606606

607607
if (cmdRef.IsValidRef())
608608
{
609-
CCommandContext context(CT_FIRST_SPLITSCREEN_CLIENT, player->GetPlayerSlot());
609+
// Some commands are blocked by UTIL_IsCommandIssuedByServerAdmin which only allows slot -1 on dedicated servers
610+
CCommandContext context(CT_FIRST_SPLITSCREEN_CLIENT, -1);
610611

611612
CCommand newArgs;
612613
newArgs.Tokenize(args.ArgS());

0 commit comments

Comments
 (0)