Merge pull request #8146 from deathride58/separateoocandlooc
Makes OOC and LOOC actually use different toggles
This commit is contained in:
@@ -24,11 +24,8 @@
|
||||
return
|
||||
|
||||
if(!holder)
|
||||
if(!GLOB.ooc_allowed)
|
||||
to_chat(src, "<span class='danger'> OOC is globally muted</span>")
|
||||
return
|
||||
if(!GLOB.dooc_allowed && (mob.stat == DEAD))
|
||||
to_chat(usr, "<span class='danger'> OOC for dead mobs has been turned off.</span>")
|
||||
if(!GLOB.looc_allowed)
|
||||
to_chat(src, "<span class='danger'> LOOC is globally muted</span>")
|
||||
return
|
||||
if(prefs.muted & MUTE_OOC)
|
||||
to_chat(src, "<span class='danger'> You cannot use OOC (muted).</span>")
|
||||
|
||||
@@ -80,6 +80,16 @@
|
||||
GLOB.ooc_allowed = !GLOB.ooc_allowed
|
||||
to_chat(world, "<B>The OOC channel has been globally [GLOB.ooc_allowed ? "enabled" : "disabled"].</B>")
|
||||
|
||||
/proc/toggle_looc(toggle = null)
|
||||
if(toggle != null)
|
||||
if(toggle != GLOB.looc_allowed)
|
||||
GLOB.looc_allowed = toggle
|
||||
else
|
||||
return
|
||||
else
|
||||
GLOB.looc_allowed = !GLOB.looc_allowed
|
||||
|
||||
|
||||
/proc/toggle_dooc(toggle = null)
|
||||
if(toggle != null)
|
||||
if(toggle != GLOB.dooc_allowed)
|
||||
|
||||
Reference in New Issue
Block a user