re-evaluate votes after player role changes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3856 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -2047,6 +2047,7 @@ void changeclientrole(int client, int role, char *pwd = NULL, bool force=false)
|
||||
logger->writeline(log::info,"[%s] set role of player %s to %s", clients[client]->hostname, clients[client]->name[0] ? clients[client]->name : "[unnamed]", role == CR_ADMIN ? "admin" : "normal player"); // flowtron : connecting players haven't got a name yet (connectadmin)
|
||||
}
|
||||
else if(pwd && pwd[0]) disconnect_client(client, DISC_SOPLOGINFAIL); // avoid brute-force
|
||||
if(curvote) curvote->evaluate();
|
||||
}
|
||||
|
||||
#include "serveractions.h"
|
||||
|
||||
Reference in New Issue
Block a user