mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Reserve console name for DMMessage
This commit is contained in:
parent
6f9e710ec9
commit
2f75092d8b
1 changed files with 7 additions and 0 deletions
|
@ -10633,6 +10633,13 @@ void Player::EventDMMessage(Event *ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!Q_stricmp(client->pers.netname, "console")) {
|
||||
// Added in OPM
|
||||
// Reserved name
|
||||
gi.Printf( "Client %d trying to send a message using a reserved name ('%s')\n", edict - g_entities, client->pers.netname);
|
||||
return;
|
||||
}
|
||||
|
||||
sToken = ev->GetString(2);
|
||||
|
||||
// Check for taunts
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue