| 2511 | } |
| 2512 | |
| 2513 | inline 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 | |
| 2521 | int getbantype(int cn) |
| 2522 | { |
no test coverage detected