Update sql_message_system.dm

This commit is contained in:
silicons
2020-10-12 12:32:37 -07:00
committed by GitHub
parent 30b711aecb
commit 6c7b34748b

View File

@@ -298,8 +298,8 @@
browse_messages(target_ckey = ckey(target_key), agegate = TRUE)
qdel(query_find_message_secret)
/proc/browse_messages(type, target_ckey, index, linkless = FALSE, filter, agegate = FALSE)
if(IsAdminAdvancedProcCall() && !check_rights(R_SENSITIVE))
/proc/browse_messages(type, target_ckey, index, linkless = FALSE, filter, agegate = FALSE, override = FALSE)
if((!override || IsAdminAdvancedProcCall()) && !check_rights(R_SENSITIVE))
return
if(!SSdbcore.Connect())
to_chat(usr, "<span class='danger'>Failed to establish database connection.</span>")