mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
modularize ban system
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#ifndef OVERRIDE_BAN_SYSTEM
|
||||||
//Blocks an attempt to connect before even creating our client datum thing.
|
//Blocks an attempt to connect before even creating our client datum thing.
|
||||||
world/IsBanned(key,address,computer_id)
|
world/IsBanned(key,address,computer_id)
|
||||||
if(ckey(key) in admin_datums)
|
if(ckey(key) in admin_datums)
|
||||||
@@ -79,3 +80,6 @@ world/IsBanned(key,address,computer_id)
|
|||||||
if (failedip)
|
if (failedip)
|
||||||
message_admins("[key] has logged in with a blank ip in the ban check.")
|
message_admins("[key] has logged in with a blank ip in the ban check.")
|
||||||
return ..() //default pager ban stuff
|
return ..() //default pager ban stuff
|
||||||
|
#endif
|
||||||
|
#undef OVERRIDE_BAN_SYSTEM
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user