mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Use Cmd_Argv() to check for dmmessage
This commit is contained in:
parent
2f8b6a2009
commit
13d855c2e7
1 changed files with 4 additions and 8 deletions
|
@ -1581,14 +1581,10 @@ void SV_ExecuteClientCommand( client_t *cl, const char *s, qboolean clientOK ) {
|
|||
}
|
||||
}
|
||||
|
||||
//if (!Q_stricmp(s, "dmmessage")) {
|
||||
// 2.0 has it wrong, it uses Q_stricmp, but it never works
|
||||
// because `s` is the full command string with arguments
|
||||
if (!Q_stricmpn(s, "dmmessage ", 10)) {
|
||||
//
|
||||
// Since 2.0, displays chat messages
|
||||
// NOTE: this should be handled by fgame, not server
|
||||
//
|
||||
// Added in 1.11 MAC server
|
||||
// Display chat messages
|
||||
// NOTE: this should be handled by fgame, not server
|
||||
if (!Q_stricmp(Cmd_Argv(0), "dmmessage")) {
|
||||
Com_Printf("%s (%zu): %s", cl->name, (size_t)(cl - svs.clients), s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue