fixed master servers compilation

This commit is contained in:
GreYFoXGTi 2011-01-24 14:17:53 +02:00
parent f1a8b6b7ad
commit 23a74424ea

View file

@ -274,7 +274,7 @@ bool CheckBan(NETADDR Addr)
return false;
}
void ConAddBan(IConsole::IResult *pResult, void *pUser)
void ConAddBan(IConsole::IResult *pResult, void *pUser, int ClientID)
{
if(m_NumBans == MAX_BANS)
{
@ -330,8 +330,7 @@ int main(int argc, const char **argv) // ignore_convention
IStorage *pStorage = CreateStorage("Teeworlds", argc, argv);
m_pConsole = CreateConsole(CFGFLAG_MASTER);
m_pConsole->Register("ban", "s", CFGFLAG_MASTER, ConAddBan, 0, "Ban IP from mastersrv");
m_pConsole->Register("ban", "s", CFGFLAG_MASTER, ConAddBan, 0, "Ban IP from mastersrv", 0);
bool RegisterFail = !pKernel->RegisterInterface(pStorage);
RegisterFail |= !pKernel->RegisterInterface(m_pConsole);