diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2011-02-16 16:32:37 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:18:00 +0000 |
commit | a2241e85481fd692a57dcb364f780f98f035ba4c (patch) | |
tree | 175c8abe21c780dd1b5feb2590e1af66f9cf93c2 /src/game | |
parent | ed974bdc2d004ade1c1e8643247b72d8b0a0aea5 (diff) |
* (bug 4906) Notify admins of attempted votes called against immune admins
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_cmds.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 82d13a13..330b5d94 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1230,6 +1230,13 @@ void Cmd_CallVote_f( gentity_t *ent ) { trap_SendServerCommand( ent-g_entities, va( "print \"%s: admin is immune\n\"", cmd ) ); + + G_AdminMessage( NULL, va( S_COLOR_WHITE "%s" S_COLOR_YELLOW " attempted %s %s" + " on immune admin " S_COLOR_WHITE "%s" S_COLOR_YELLOW + " for: %s", + ent->client->pers.netname, cmd, vote, + g_entities[ clientNum ].client->pers.netname, + reason[ 0 ] ? reason : "no reason" ) ); return; } |