Obscure Admin Related fixes

This commit is contained in:
Aurorablade
2018-03-13 22:22:51 -04:00
parent 39938ed755
commit 2a3dd305a9
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -11,6 +11,9 @@ world/IsBanned(key,address,computer_id)
var/ckey = ckey(key)
if((ckey in admin_datums) || (ckey in deadmins))
admin = 1
var/datum/admins/A = admin_datums[ckey]
if(A.rights & R_ADMIN)
admin = 1
//Guest Checking
if(!guests_allowed && IsGuestKey(key))
+2 -3
View File
@@ -887,7 +887,8 @@
else if(href_list["boot2"])
var/mob/M = locate(href_list["boot2"])
if(ismob(M))
if(!check_if_greater_rights_than(M.client))
if(M.client && M.client.holder && (M.client.holder.rights & R_BAN))
to_chat(src, "you acnt kick this fucker")
return
to_chat(M, "<span class='warning'>You have been kicked from the server</span>")
log_admin("[key_name(usr)] booted [key_name(M)].")
@@ -960,8 +961,6 @@
var/mob/M = locate(href_list["newban"])
if(!ismob(M)) return
if(M.client && M.client.holder) return //admins cannot be banned. Even if they could, the ban doesn't affect them anyway
switch(alert("Temporary Ban?",,"Yes","No", "Cancel"))
if("Yes")
var/mins = input(usr,"How long (in minutes)?","Ban time",1440) as num|null