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

Function addban

source/src/server.cpp:2513–2519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2511}
2512
2513inline void addban(client *cl, int reason, int type)
2514{
2515 if(!cl) return;
2516 ban b = { cl->peer->address, servmillis+scl.ban_time, type };
2517 bans.add(b);
2518 disconnect_client(cl->clientnum, reason);
2519}
2520
2521int getbantype(int cn)
2522{

Callers 2

performMethod · 0.70
serverdamageFunction · 0.70

Calls 2

disconnect_clientFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected