mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Admin Kicks now prompt the admin to avoid accidental kicking (#38544)
* TO THE PLAAAAAACE I BELOOOOOONG * TAKE ME HOOOOOOOOOOME * WEEEEEEST VIRGINIAAAAAAAAAAAAAAAAAAA * fixes my shit * No meming in admin frontend
This commit is contained in:
@@ -1060,10 +1060,17 @@
|
||||
if(!check_if_greater_rights_than(M.client))
|
||||
to_chat(usr, "<span class='danger'>Error: They have more rights than you do.</span>")
|
||||
return
|
||||
if(alert(usr, "Kick [key_name(M)]?", "Confirm", "Yes", "No") != "Yes")
|
||||
return
|
||||
if(!M)
|
||||
to_chat(usr, "<span class='danger'>Error: [M] no longer exists!</span>")
|
||||
return
|
||||
if(!M.client)
|
||||
to_chat(usr, "<span class='danger'>Error: [M] no longer has a client!</span>")
|
||||
return
|
||||
to_chat(M, "<span class='danger'>You have been kicked from the server by [usr.client.holder.fakekey ? "an Administrator" : "[usr.client.ckey]"].</span>")
|
||||
log_admin("[key_name(usr)] kicked [key_name(M)].")
|
||||
message_admins("<span class='adminnotice'>[key_name_admin(usr)] kicked [key_name_admin(M)].</span>")
|
||||
//M.client = null
|
||||
qdel(M.client)
|
||||
|
||||
else if(href_list["addmessage"])
|
||||
|
||||
Reference in New Issue
Block a user