Files
vgstation13/code/modules/admin/IsBanned.dm
elly1989@rocketmail.com efb1720f07 for
fuck
sake

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3723 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-02 13:37:34 +00:00

20 lines
740 B
Plaintext

//Blocks an attempt to connect before even creating our client datum thing.
world/IsBanned(key,address,computer_id)
if(ckey(key) in admins)
return ..()
//Guest Checking
if( !guests_allowed && IsGuestKey(key) )
log_access("Failed Login: [key] - Guests not allowed")
message_admins("\blue Failed Login: [key] - Guests not allowed")
return list("reason"="guest", "desc"="\nReason: Guests not allowed.brb")
//Ban Checking
. = CheckBan( ckey(key), computer_id, address )
if(.)
log_access("Failed Login: [key] [computer_id] [address] - Banned [.["reason"]]")
message_admins("\blue Failed Login: [key] id:[computer_id] ip:[address] - Banned [.["reason"]]")
return .
return ..() //default pager ban stuff