From 4dfe51b1574d42e5efe38d5007a07d2e6e502bc3 Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Tue, 9 Jun 2015 11:42:20 +0100 Subject: [PATCH] Dibs Runtime Fix --- code/modules/admin/topic.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 6ebe13fc..5359e284 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -2843,6 +2843,10 @@ if(!check_rights(R_ADMIN|R_MOD)) return var/mob/M = locate(href_list["admindibs"]) + if(!M || !M.client) + usr << "The client has lost connection." + return + if(M.client.adminhelped == 2) log_admin("[key_name(usr)] called dibs on [key_name(M)]'s adminhelp!") message_admins("[key_name_admin(usr)] has called dibs on [key_name_admin(M)]'s adminhelp!")