admin bans with custom ban messages should now be recognised by the server properly

This commit is contained in:
Monster Iestyn 2017-02-10 20:31:58 +00:00
parent 591fe13cc0
commit 8a421a05d9
1 changed files with 1 additions and 1 deletions

View File

@ -2696,7 +2696,7 @@ static void Got_KickCmd(UINT8 **p, INT32 playernum)
// If a verified admin banned someone, the server needs to know about it.
// If the playernum isn't zero (the server) then the server needs to record the ban.
if (server && playernum && msg == KICK_MSG_BANNED)
if (server && playernum && (msg == KICK_MSG_BANNED || msg == KICK_MSG_CUSTOM_BAN))
{
if (I_Ban && !I_Ban(playernode[(INT32)pnum]))
{