mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
@@ -17,7 +17,7 @@ var/global/normal_ooc_colour = "#002eb8"
|
||||
src << "\red You have OOC muted."
|
||||
return
|
||||
|
||||
if(!holder)
|
||||
if(!(holder && holder.rights && (holder.rights & R_MOD)))
|
||||
if(!ooc_allowed)
|
||||
src << "\red OOC is globally muted"
|
||||
return
|
||||
@@ -99,7 +99,7 @@ var/global/normal_ooc_colour = "#002eb8"
|
||||
src << "\red You have LOOC muted."
|
||||
return
|
||||
|
||||
if(!holder)
|
||||
if(!(holder && holder.rights && (holder.rights & R_MOD)))
|
||||
if(!ooc_allowed)
|
||||
src << "\red LOOC is globally muted"
|
||||
return
|
||||
|
||||
@@ -1015,7 +1015,8 @@
|
||||
return
|
||||
|
||||
else if(href_list["mute"])
|
||||
if(!check_rights(R_ADMIN)) return
|
||||
if(!check_rights(R_MOD))
|
||||
return
|
||||
|
||||
var/mob/M = locate(href_list["mute"])
|
||||
if(!ismob(M)) return
|
||||
|
||||
@@ -20,12 +20,12 @@
|
||||
|
||||
var/stafftype = null
|
||||
|
||||
if (src.holder.rights & R_MOD)
|
||||
stafftype = "MOD"
|
||||
|
||||
if (src.holder.rights & R_MENTOR)
|
||||
stafftype = "MENTOR"
|
||||
|
||||
if (src.holder.rights & R_MOD)
|
||||
stafftype = "MOD"
|
||||
|
||||
if (src.holder.rights & R_ADMIN)
|
||||
stafftype = "ADMIN"
|
||||
|
||||
|
||||
@@ -152,15 +152,12 @@ proc/cmd_admin_mute(mob/M as mob, mute_type, automute = 0)
|
||||
else
|
||||
if(!usr || !usr.client)
|
||||
return
|
||||
if(!usr.client.holder)
|
||||
if(!(usr.client.holder && usr.client.holder.rights && (usr.client.holder.rights & R_MOD)))
|
||||
usr << "<font color='red'>Error: cmd_admin_mute: You don't have permission to do this.</font>"
|
||||
return
|
||||
if(!M.client)
|
||||
usr << "<font color='red'>Error: cmd_admin_mute: This mob doesn't have a client tied to it.</font>"
|
||||
if(M.client.holder)
|
||||
usr << "<font color='red'>Error: cmd_admin_mute: You cannot mute an admin.</font>"
|
||||
if(!M.client) return
|
||||
if(M.client.holder) return
|
||||
|
||||
var/muteunmute
|
||||
var/mute_string
|
||||
|
||||
Reference in New Issue
Block a user