mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[s] Forgot to check the mute before sending the messages to admins (#13498)
* [s] Forgot to check the mute before sending the messages to admins * Compiles now
This commit is contained in:
@@ -41,6 +41,8 @@
|
||||
return
|
||||
//yogs start
|
||||
if(isnotpretty(message))
|
||||
if(usr.client.prefs.muted & MUTE_IC)
|
||||
return
|
||||
usr.client.handle_spam_prevention("PRETTY FILTER", MUTE_ALL) // Constant message mutes someone faster for not pretty messages
|
||||
to_chat(usr, "<span class='notice'>Your fingers slip. <a href='https://forums.yogstation.net/help/rules/#rule-0_1'>See rule 0.1</a>.</span>")
|
||||
var/log_message = "[key_name(usr)] just tripped a pretty filter: '[message]'."
|
||||
@@ -82,6 +84,8 @@
|
||||
return
|
||||
//yogs start
|
||||
if(isnotpretty(channel_title))
|
||||
if(usr.client.prefs.muted & MUTE_IC)
|
||||
return
|
||||
usr.client.handle_spam_prevention("PRETTY FILTER", MUTE_ALL) // Constant message mutes someone faster for not pretty messages
|
||||
to_chat(usr, "<span class='notice'>Your fingers slip. <a href='https://forums.yogstation.net/help/rules/#rule-0_1'>See rule 0.1</a>.</span>")
|
||||
var/log_message = "[key_name(usr)] just tripped a pretty filter: '[channel_title]'."
|
||||
@@ -114,6 +118,8 @@
|
||||
return
|
||||
//yogs start
|
||||
if(isnotpretty(newname))
|
||||
if(usr.client.prefs.muted & MUTE_IC)
|
||||
return
|
||||
usr.client.handle_spam_prevention("PRETTY FILTER", MUTE_ALL) // Constant message mutes someone faster for not pretty messages
|
||||
to_chat(usr, "<span class='notice'>Your fingers slip. <a href='https://forums.yogstation.net/help/rules/#rule-0_1'>See rule 0.1</a>.</span>")
|
||||
var/log_message = "[key_name(usr)] just tripped a pretty filter: '[newname]'."
|
||||
@@ -159,6 +165,8 @@
|
||||
return
|
||||
//yogs start
|
||||
if(isnotpretty(newname))
|
||||
if(usr.client.prefs.muted & MUTE_IC)
|
||||
return
|
||||
usr.client.handle_spam_prevention("PRETTY FILTER", MUTE_ALL) // Constant message mutes someone faster for not pretty messages
|
||||
to_chat(usr, "<span class='notice'>Your fingers slip. <a href='https://forums.yogstation.net/help/rules/#rule-0_1'>See rule 0.1</a>.</span>")
|
||||
var/log_message = "[key_name(usr)] just tripped a pretty filter: '[newname]'."
|
||||
@@ -184,6 +192,8 @@
|
||||
|
||||
//yogs start
|
||||
if(isnotpretty(new_password))
|
||||
if(usr.client.prefs.muted & MUTE_IC)
|
||||
return
|
||||
usr.client.handle_spam_prevention("PRETTY FILTER", MUTE_ALL) // Constant message mutes someone faster for not pretty messages
|
||||
to_chat(usr, "<span class='notice'>Your fingers slip. <a href='https://forums.yogstation.net/help/rules/#rule-0_1'>See rule 0.1</a>.</span>")
|
||||
var/log_message = "[key_name(usr)] just tripped a pretty filter: '[new_password]'."
|
||||
|
||||
Reference in New Issue
Block a user