MCPcopy Create free account
hub / github.com/cppla/ServerStatus / BanRange

Method BanRange

server/src/netban.cpp:376–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376int CNetBan::BanRange(const CNetRange *pRange, int Seconds, const char *pReason)
377{
378 if(pRange->IsValid())
379 return Ban(&m_BanRangePool, pRange, Seconds, pReason);
380
381 dbg_msg("net_ban", "ban failed (invalid range)");
382 return -1;
383}
384
385int CNetBan::UnbanByAddr(const NETADDR *pAddr)
386{

Callers

nothing calls this directly

Calls 2

dbg_msgFunction · 0.85
IsValidMethod · 0.80

Tested by

no test coverage detected