mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Fixes admin log runtime
message_admins is sometimes used for warnings during creation of a client's preferences datum, which means it can get called while an admin's prefs doesn't exist
This commit is contained in:
@@ -9,7 +9,7 @@ var/global/nologevent = 0
|
||||
log_adminwarn(msg)
|
||||
for(var/client/C in admins)
|
||||
if(R_ADMIN & C.holder.rights)
|
||||
if(!(C.prefs.toggles & CHAT_NO_ADMINLOGS))
|
||||
if(C.prefs && !(C.prefs.toggles & CHAT_NO_ADMINLOGS))
|
||||
to_chat(C, msg)
|
||||
|
||||
/proc/msg_admin_attack(var/text) //Toggleable Attack Messages
|
||||
|
||||
Reference in New Issue
Block a user