Automute shouldn't go off if you didn't type anything

This commit is contained in:
Anewbe
2017-04-03 14:14:52 -05:00
parent c4f8bdc6b9
commit 1e7bf50a4c
6 changed files with 62 additions and 19 deletions

View File

@@ -37,6 +37,7 @@
log_ooc("[mob.name]/[key] : [msg]")
if(msg)
handle_spam_prevention(MUTE_OOC)
var/ooc_style = "everyone"
@@ -107,6 +108,7 @@
log_ooc("(LOCAL) [mob.name]/[key] : [msg]")
if(msg)
handle_spam_prevention(MUTE_OOC)
var/mob/source = mob.get_looc_source()

View File

@@ -17,6 +17,7 @@ var/list/adminhelp_ignored_words = list("unknown","the","a","an","of","monkey","
adminhelped = 1 //Determines if they get the message to reply by clicking the name.
if(msg)
handle_spam_prevention(MUTE_ADMINHELP)
//clean the input msg

View File

@@ -10,6 +10,7 @@
if(!msg) return
if(usr.client)
if(msg)
client.handle_spam_prevention(MUTE_PRAY)
if(usr.client.prefs.muted & MUTE_PRAY)
usr << "\red You cannot pray (muted)."

View File

@@ -7,6 +7,7 @@
log_say("Ghost/[src.key] : [message]")
if (src.client)
if(message)
client.handle_spam_prevention(MUTE_DEADCHAT)
if(src.client.prefs.muted & MUTE_DEADCHAT)
src << "\red You cannot talk in deadchat (muted)."
@@ -27,6 +28,7 @@
log_emote("Ghost/[src.key] : [message]")
if(src.client)
if(message)
client.handle_spam_prevention(MUTE_DEADCHAT)
if(src.client.prefs.muted & MUTE_DEADCHAT)
src << "\red You cannot emote in deadchat (muted)."

View File

@@ -133,6 +133,7 @@ proc/get_radio_key_from_channel(var/channel)
/mob/living/say(var/message, var/datum/language/speaking = null, var/verb="says", var/alt_name="", var/whispering = 0)
//If you're muted for IC chat
if(client)
if(message)
client.handle_spam_prevention(MUTE_IC)
if((client.prefs.muted & MUTE_IC) || say_disabled)
src << "<span class='warning'>You cannot speak in IC (Muted).</span>"

View File

@@ -0,0 +1,36 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
#################################
# Your name.
author: Anewbe
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Automute shouldn't trigger if you don't type anything."