Merged var/muted_ic; var/muted_ooc; var/muted_deadchat; var/muted_pray; var/muted_adminhelp into var/muted as bitflags

Added a config option config.automute_on It toggles automuting.
Admins cannot be muted.
Made the proc/cmd_admin_mute code shorter.
Automuting defaults to off

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4758 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-09-25 21:23:02 +00:00
parent fc4a98ba39
commit cc2c4de49b
19 changed files with 93 additions and 105 deletions
+2 -2
View File
@@ -10,8 +10,8 @@
log_say("Ghost/[src.key] : [message]")
if (src.client)
if(src.client.muted_deadchat)
src << "\red You cannot talk in deadchat (muted by admins)."
if(src.client.muted & MUTE_DEADCHAT)
src << "\red You cannot talk in deadchat (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_DEADCHAT))
@@ -66,8 +66,8 @@
if(silent)
return
if (src.client)
if (client.muted_ic)
src << "\red You cannot send IC messages (muted by admins)."
if (client.muted & MUTE_IC)
src << "\red You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return
@@ -8,8 +8,8 @@
log_whisper("[src.name]/[src.key] : [message]")
if (src.client)
if (src.client.muted_ic)
src << "\red You cannot whisper (muted by admins)."
if (src.client.muted & MUTE_IC)
src << "\red You cannot whisper (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
+2 -2
View File
@@ -86,8 +86,8 @@ var/list/department_radio_keys = list(
return say_dead(message)
if (src.client)
if(client.muted_ic)
src << "\red You cannot speak in IC (muted by admins)."
if(client.muted & MUTE_IC)
src << "\red You cannot speak in IC (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return
@@ -69,8 +69,8 @@
if ("me")
if (src.client)
if(client.muted_ic)
src << "You cannot send IC messages (muted by admins)."
if(client.muted & MUTE_IC)
src << "You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return
+2 -2
View File
@@ -3,8 +3,8 @@
return
if (src.client)
if(client.muted_ic)
src << "You cannot send IC messages (muted by admins)."
if(client.muted & MUTE_IC)
src << "You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
return