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

Function getpongflags

source/src/server.cpp:4712–4719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4710}
4711
4712int getpongflags(enet_uint32 ip)
4713{
4714 int flags = sg->mastermode << PONGFLAG_MASTERMODE;
4715 flags |= scl.serverpassword[0] ? 1 << PONGFLAG_PASSWORD : 0;
4716 loopv(bans) if(bans[i].address.host == ip) { flags |= 1 << PONGFLAG_BANNED; break; }
4717 flags |= ipblacklist.check(ip) ? 1 << PONGFLAG_BLACKLIST : 0;
4718 return flags;
4719}
4720
4721void extping_namelist(ucharbuf &p)
4722{

Callers 1

servermsFunction · 0.85

Calls 2

loopvFunction · 0.70
checkMethod · 0.45

Tested by

no test coverage detected