|
|
|
@ -25,7 +25,7 @@
@@ -25,7 +25,7 @@
|
|
|
|
|
|
|
|
|
|
_addon.author = 'atom0s'; |
|
|
|
|
_addon.name = 'timestamp'; |
|
|
|
|
_addon.version = '3.0.0'; |
|
|
|
|
_addon.version = '3.0.1'; |
|
|
|
|
|
|
|
|
|
require 'common' |
|
|
|
|
|
|
|
|
@ -71,6 +71,17 @@ ashita.register_event('incoming_text', function(mode, message, modifiedmode, mod
@@ -71,6 +71,17 @@ ashita.register_event('incoming_text', function(mode, message, modifiedmode, mod
|
|
|
|
|
if (modifiedmessage ~= nil and #modifiedmessage > 0) then |
|
|
|
|
message = modifiedmessage; |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
-- Check for double-chat lines (ie. npc chat).. |
|
|
|
|
if (message:startswith(string.char(0x1E, 0x01))) then |
|
|
|
|
return false; |
|
|
|
|
end |
|
|
|
|
--[[local f = string.sub(message, 1, 1); |
|
|
|
|
if (f ~= nil and (string.byte(f) == 0x1E or string.byte(f) == 0x1F)) then |
|
|
|
|
if (string.sub(message, 5, 5) == '[') then |
|
|
|
|
return false; |
|
|
|
|
end |
|
|
|
|
end]] |
|
|
|
|
|
|
|
|
|
-- Skip ignored chat modes.. |
|
|
|
|
local ignored = T{ |
|
|
|
|