From f52bb39674f00593a6afd0c7f410528135297bc3 Mon Sep 17 00:00:00 2001 From: Shadowlight213 Date: Sun, 25 Oct 2015 00:45:48 -0700 Subject: [PATCH] Adds OOC banning --- code/game/verbs/ooc.dm | 3 +++ code/modules/admin/admin.dm | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/code/game/verbs/ooc.dm b/code/game/verbs/ooc.dm index 3a5b8178aae..f73a35f6eea 100644 --- a/code/game/verbs/ooc.dm +++ b/code/game/verbs/ooc.dm @@ -28,6 +28,9 @@ if(prefs.muted & MUTE_OOC) src << "You cannot use OOC (muted)." return + if(jobban_isbanned(src, "OOC")) + src << "You have been banned from OOC." + return if(handle_spam_prevention(msg,MUTE_OOC)) return if(findtext(msg, "byond://")) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 42ade144ac5..c6e864e8b89 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -66,6 +66,11 @@ var/global/floorIsLava = 0 body += "DEADCHAT\]" body += "(toggle all)" + if(jobban_isbanned(M, "OOC")) + body+= "OOCBAN | " + else + body+= "OOCBAN | " + body += "

" body += "Jump to | " body += "Get | "