mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-30 07:26:39 +01:00
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:
@@ -13,7 +13,7 @@
|
||||
set name = "OOC" //Gave this shit a shorter name so you only have to time out "ooc" rather than "ooc message" to use it --NeoFite
|
||||
set category = "OOC"
|
||||
if (IsGuestKey(src.key))
|
||||
src << "You are not authorized to communicate over these channels."
|
||||
src << "Guests may not use OOC."
|
||||
return
|
||||
msg = copytext(sanitize(msg), 1, MAX_MESSAGE_LEN)
|
||||
if(!msg)
|
||||
@@ -28,8 +28,8 @@
|
||||
usr << "\red OOC for dead mobs has been turned off."
|
||||
return
|
||||
else if (src.client)
|
||||
if(src.client.muted_ooc)
|
||||
src << "\red You cannot use OOC (muted by admins)."
|
||||
if(src.client.muted & MUTE_OOC)
|
||||
src << "\red You cannot use OOC (muted)."
|
||||
return
|
||||
|
||||
if (src.client.handle_spam_prevention(msg,MUTE_OOC))
|
||||
|
||||
Reference in New Issue
Block a user