MCPcopy Create free account
hub / github.com/assaultcube/AC / checkban

Function checkban

source/src/master.cpp:97–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97bool checkban(vector<baninfo> &bans, enet_uint32 host)
98{
99 loopv(bans) if((host & bans[i].mask) == bans[i].ip) return true;
100 return false;
101}
102
103// for AUTH:
104struct authreq

Callers 4

bangameserversFunction · 0.85
checkclientinputFunction · 0.85
checkclientsFunction · 0.85
banclientsFunction · 0.85

Calls 1

loopvFunction · 0.70

Tested by

no test coverage detected