mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 05:27:39 +01:00
Merge pull request #4589 from MisterLayne/check_mention_fix
No longer emphasizes basic words.
This commit is contained in:
@@ -87,7 +87,9 @@
|
||||
|
||||
// Checks if the mob's own name is included inside message. Handles both first and last names.
|
||||
/mob/proc/check_mentioned(var/message)
|
||||
var/not_included = list("a", "the", "of", "in", "for", "through", "throughout", "therefore", "here", "there", "then", "now", "I", "you", "they", "he", "she", "by")
|
||||
var/list/valid_names = splittext(real_name, " ") // Should output list("John", "Doe") as an example.
|
||||
valid_names -= not_included
|
||||
var/list/nicknames = splittext(nickname, " ")
|
||||
valid_names += nicknames
|
||||
valid_names += special_mentions()
|
||||
|
||||
Reference in New Issue
Block a user