mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +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.
|
||||
world/IsBanned(key,address,computer_id)
|
||||
if(ckey(key) in admin_datums)
|
||||
@@ -79,3 +80,6 @@ world/IsBanned(key,address,computer_id)
|
||||
if (failedip)
|
||||
message_admins("[key] has logged in with a blank ip in the ban check.")
|
||||
return ..() //default pager ban stuff
|
||||
#endif
|
||||
#undef OVERRIDE_BAN_SYSTEM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user