-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChatParsing.lua
More file actions
29 lines (18 loc) · 849 Bytes
/
ChatParsing.lua
File metadata and controls
29 lines (18 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--=================================================================================================
--= Chat parsing
--= ===============================================================================================
--= parse the chat and call handlers if a match is found
--=================================================================================================
-- lotro chat interface ---------------------------------------------------------------------------
function Turbine.Chat.Received(sender, args)
-- filter nil massages
if (args.Message == nil) then
return
end
-- iterate logs and compare to the message
for logIndex, log in ipairs(_G.Events) do
if (string.find(args.Message, log.match)) then
ProcessMatch(args.Message, log, logIndex)
end
end
end