mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed master servers compilation
This commit is contained in:
parent
f1a8b6b7ad
commit
23a74424ea
|
@ -274,7 +274,7 @@ bool CheckBan(NETADDR Addr)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConAddBan(IConsole::IResult *pResult, void *pUser)
|
void ConAddBan(IConsole::IResult *pResult, void *pUser, int ClientID)
|
||||||
{
|
{
|
||||||
if(m_NumBans == MAX_BANS)
|
if(m_NumBans == MAX_BANS)
|
||||||
{
|
{
|
||||||
|
@ -330,8 +330,7 @@ int main(int argc, const char **argv) // ignore_convention
|
||||||
IStorage *pStorage = CreateStorage("Teeworlds", argc, argv);
|
IStorage *pStorage = CreateStorage("Teeworlds", argc, argv);
|
||||||
|
|
||||||
m_pConsole = CreateConsole(CFGFLAG_MASTER);
|
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);
|
bool RegisterFail = !pKernel->RegisterInterface(pStorage);
|
||||||
RegisterFail |= !pKernel->RegisterInterface(m_pConsole);
|
RegisterFail |= !pKernel->RegisterInterface(m_pConsole);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue