Fixes check_rights() runtime.

This commit is contained in:
Neerti
2016-08-28 22:03:45 -04:00
parent 9ec97910b4
commit 62053ce63d
+2
View File
@@ -64,6 +64,8 @@ NOTE: It checks usr by default. Supply the "user" argument if you wish to check
C = M.client
if(!C)
return FALSE
if(!(istype(C, /client))) // If we still didn't find a client, something is wrong.
return FALSE
if(!C.holder)
if(show_msg)
C << "<span class='warning'>Error: You are not an admin.</span>"