Skip to content

Commit

Permalink
LOOC Banning (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurrain authored Apr 20, 2024
1 parent 0d5573a commit 7564651
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions code/modules/admin/admin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@
body+= "<a href='?src=[ref];jobban3=OOC;jobban4=[ref_mob]'><font color=red>OOCBan</font></A> | "
else
body += "<a href='?src=[ref];jobban3=OOC;jobban4=[ref_mob]'>OOCBan</A> | "
if(jobban_isbanned(M, "LOOC"))
body+= "<a href='?src=[ref];jobban3=LOOC;jobban4=[ref_mob]'><font color=red>LOOCBan</font></A> | "
else
body += "<a href='?src=[ref];jobban3=LOOC;jobban4=[ref_mob]'>LOOCBan</A> | "
if(QDELETED(M) || QDELETED(usr))
return
if(jobban_isbanned(M, "emote"))
Expand Down
6 changes: 3 additions & 3 deletions code/modules/client/verbs/looc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ GLOBAL_VAR_INIT(normal_looc_colour, "#6699CC")

/* if(!(prefs.chat_toggles & CHAT_OOC))
to_chat(src, span_danger("You have OOC muted."))
return
if(jobban_isbanned(mob, "OOC"))
to_chat(src, span_danger("You have been banned from OOC."))
return */
if(jobban_isbanned(mob, "LOOC"))
to_chat(src, "<span class='danger'>You have been banned from LOOC.</span>")
return

if(!holder)
//if(!GLOB.looc_allowed)
Expand Down

0 comments on commit 7564651

Please sign in to comment.