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:
ac_stef
2008-12-03 19:49:02 +00:00
parent 00958c88d0
commit 4dd56ff84b
+1
View File
@@ -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"