mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-20 07:23:13 +09:00
Disabled pattern matching
This commit is contained in:
1 parent
c32f42494d
commit
b102bdbc7f
1 file changed
+1
-1
@@ -28,7 +28,7 @@ Event.add(defines.events.on_console_chat,function(event)
|
|||||||
-- Loops over online players to see if they name is included
|
-- Loops over online players to see if they name is included
|
||||||
for _,mentioned_player in pairs(game.connected_players) do
|
for _,mentioned_player in pairs(game.connected_players) do
|
||||||
if mentioned_player.index ~= player.index then
|
if mentioned_player.index ~= player.index then
|
||||||
if search_string:match(mentioned_player.name:lower()) then
|
if search_string:match(mentioned_player.name:lower(), 1, true) then
|
||||||
send_text(mentioned_player.index,{'chat-popup.ping',player.name},player.chat_color)
|
send_text(mentioned_player.index,{'chat-popup.ping',player.name},player.chat_color)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user