diff --git a/src/mastersrv/mastersrv.cpp b/src/mastersrv/mastersrv.cpp index 10440e7db..fffc0740f 100644 --- a/src/mastersrv/mastersrv.cpp +++ b/src/mastersrv/mastersrv.cpp @@ -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);