MCPcopy Create free account
hub / github.com/ddnet/ddnet / BanRange

Method BanRange

src/engine/server/server.cpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int CServerBan::BanRange(const CNetRange *pRange, int Seconds, const char *pReason)
137{
138 if(pRange->IsValid())
139 return BanExt(&m_BanRangePool, pRange, Seconds, pReason, true);
140
141 Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "net_ban", "ban failed (invalid range)");
142 return -1;
143}
144
145void CServerBan::ConBanExt(IConsole::IResult *pResult, void *pUser)
146{

Callers

nothing calls this directly

Calls 2

IsValidMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected