Automatic guest kicking

Signed-off-by: Mister Fox <traitor.foxy.brown@live.com>
This commit is contained in:
Mister Fox
2011-12-19 08:30:15 -05:00
parent 15c3af3fe2
commit 35b68d10e1
4 changed files with 11 additions and 3 deletions
+6
View File
@@ -700,11 +700,17 @@
alert(src,"You have been banned.\nReason : [isbanned]","Ban","Ok")
del(src)
/*
if (!guests_allowed && IsGuestKey(key))
log_access("Failed Login: [src] - Guests not allowed")
message_admins("\blue Failed Login: [src] - Guests not allowed")
alert(src,"You cannot play here.\nReason : Guests not allowed","Guests not allowed","Ok")
del(src)
*/
if(IsGuestKey(src.key))
alert(src,"Baystation12 doesn't allow guest accounts to play. Please go to http://www.byond.com/ and register for a key.","Guest","OK")
del(src)
if (((world.address == address || !(address)) && !(host)))
host = key