Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert committed Jan 30, 2025
1 parent 773a18d commit bc6f2b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/dead/new_player/new_player.dm
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
to_chat(src, span_danger("You have been banned from lobby chat."))
return

message = copytext_char(sanitize(message), 1, MAX_MESSAGE_LEN)
message = trim(sanitize(message), MAX_MESSAGE_LEN)
var/list/filter_result = is_ooc_filtered(message)
if (!CAN_BYPASS_FILTER(mob) && filter_result)
REPORT_CHAT_FILTER_TO_USER(src, filter_result)
Expand All @@ -446,7 +446,7 @@
return
message_admins("[ADMIN_LOOKUPFLW(src)] has passed the soft filter for \"[soft_filter_result[CHAT_FILTER_INDEX_WORD]]\" they may be using a disallowed term. Message: \"[message]\"")
log_admin_private("[key_name(src)] has passed the soft filter for \"[soft_filter_result[CHAT_FILTER_INDEX_WORD]]\" they may be using a disallowed term. Message: \"[message]\"")
if(!message)
if(!message || QDELETED(src))
return
mob.log_talk(message, LOG_OOC)
message = "<span class='message linkify'>[emoji_parse(message)]</span>"
Expand Down
3 changes: 1 addition & 2 deletions maplestation_modules/code/modules/client/verbs/looc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ GLOBAL_VAR_INIT(looc_allowed, TRUE)
if(QDELETED(src))
return

msg = copytext_char(sanitize(msg), 1, MAX_MESSAGE_LEN)

msg = trim(sanitize(msg), MAX_MESSAGE_LEN)
if(!msg)
return

Expand Down

0 comments on commit bc6f2b7

Please sign in to comment.