Skip to content

Commit

Permalink
Send full list of commands to the client upon pubkey authentication a…
Browse files Browse the repository at this point in the history
…nd remove listrotation and listmaps from admin command list

/listrotation didn't work because someone added it to the admin command list with no function so it was always handled by the admin list
instead of the command list in g_cmds.cpp.
Fixes #433
  • Loading branch information
DolceTriade committed Sep 7, 2014
1 parent c69824a commit 170cd1a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions src/gamelogic/game/g_admin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,24 +201,12 @@ static const g_admin_cmd_t g_admin_cmds[] =
N_("(^5mapname^7)")
},

{
"listmaps", 0, qtrue, NULL,
N_("display a list of available maps on the server"),
N_("(^5mapname^7)")
},

{
"listplayers", G_admin_listplayers, qtrue, "listplayers",
N_("display a list of players, their client numbers and their levels"),
""
},

{
"listrotation", 0, qtrue, NULL,
N_("display the active map rotation"),
""
},

{
"lock", G_admin_lock, qfalse, "lock",
N_("lock a team to prevent anyone from joining it"),
Expand Down
2 changes: 1 addition & 1 deletion src/gamelogic/game/g_cmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4472,7 +4472,7 @@ static void Cmd_Pubkey_Identify_f( gentity_t *ent )

ent->client->pers.pubkey_authenticated = 1;
G_admin_authlog( ent );
G_admin_cmdlist( ent );
G_ListCommands( ent );
CP( "cp_tr " QQ(N_("^2Pubkey authenticated")) "\n" );
}

Expand Down

0 comments on commit 170cd1a

Please sign in to comment.