Mute Changes

- R_MOD is now needed to mute players.
- Admins/mods/mentors can now be muted. The first two can unmute
themselves, the third cannot.
- Global OOC mute now applies to mentors as well, but not to admins or mods.
- Global Deadchat mute still only applies to regular players.
- Mods using DSAY will show up as MOD instead of MENTOR.
This commit is contained in:
DZD
2015-03-30 19:35:36 -04:00
parent f7fb4f0376
commit 1fa2c164f9
4 changed files with 8 additions and 10 deletions
+2 -1
View File
@@ -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
+3 -3
View File
@@ -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"
+1 -4
View File
@@ -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