Mutes are now in datum/preferences. That means they are persistent! You can't avoid them by logging out you naughty little spammers.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5124 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-11-19 17:09:05 +00:00
parent 599430c3ff
commit 14ed3f155b
15 changed files with 23 additions and 22 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
log_say("Ghost/[src.key] : [message]")
if (src.client)
if(src.client.muted & MUTE_DEADCHAT)
if(src.client.prefs.muted & MUTE_DEADCHAT)
src << "\red You cannot talk in deadchat (muted)."
return
@@ -79,7 +79,7 @@
if(silent)
return
if (src.client)
if (client.muted & MUTE_IC)
if (client.prefs.muted & MUTE_IC)
src << "\red You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
@@ -8,7 +8,7 @@
log_whisper("[src.name]/[src.key] : [message]")
if (src.client)
if (src.client.muted & MUTE_IC)
if (src.client.prefs.muted & MUTE_IC)
src << "\red You cannot whisper (muted)."
return
+1 -1
View File
@@ -86,7 +86,7 @@ var/list/department_radio_keys = list(
return say_dead(message)
if (src.client)
if(client.muted & MUTE_IC)
if(client.prefs.muted & MUTE_IC)
src << "\red You cannot speak in IC (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
@@ -72,7 +72,7 @@
if ("me")
if (src.client)
if(client.muted & MUTE_IC)
if(client.prefs.muted & MUTE_IC)
src << "You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
+1 -1
View File
@@ -3,7 +3,7 @@
return
if (src.client)
if(client.muted & MUTE_IC)
if(client.prefs.muted & MUTE_IC)
src << "You cannot send IC messages (muted)."
return
if (src.client.handle_spam_prevention(message,MUTE_IC))
@@ -43,6 +43,7 @@ datum/preferences
//non-preference stuff
var/warns = 0
var/muted = 0
var/last_ip
var/last_id