From 49a34614cd903402a88bf01065d33606a3b55fb0 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Tue, 19 Jun 2018 16:51:14 -0500 Subject: [PATCH] [MIRROR] Admin Kicks now prompt the admin to avoid accidental kicking (#7191) * 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 * Admin Kicks now prompt the admin to avoid accidental kicking --- code/modules/admin/topic.dm | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 0a4a857b19..d5349c3e2f 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -1058,14 +1058,21 @@ if(!check_rights(R_ADMIN)) return var/mob/M = locate(href_list["boot2"]) - if (ismob(M)) + if(ismob(M)) if(!check_if_greater_rights_than(M.client)) to_chat(usr, "Error: They have more rights than you do.") return + if(alert(usr, "Kick [key_name(M)]?", "Confirm", "Yes", "No") != "Yes") + return + if(!M) + to_chat(usr, "Error: [M] no longer exists!") + return + if(!M.client) + to_chat(usr, "Error: [M] no longer has a client!") + return to_chat(M, "You have been kicked from the server by [usr.client.holder.fakekey ? "an Administrator" : "[usr.client.ckey]"].") log_admin("[key_name(usr)] kicked [key_name(M)].") message_admins("[key_name_admin(usr)] kicked [key_name_admin(M)].") - //M.client = null qdel(M.client) else if(href_list["addmessage"])