Browse Source

Fixed issue with timestamp double-stamping npc chat lines.

pull/45/head
atom0s 7 years ago
parent
commit
f2d5b7ae3d
  1. BIN
      Ashita.dll
  2. 13
      addons/timestamp/timestamp.lua
  3. BIN
      injector.exe

BIN
Ashita.dll

Binary file not shown.

13
addons/timestamp/timestamp.lua

@ -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{

BIN
injector.exe

Binary file not shown.
Loading…
Cancel
Save