Browse Source

Fixed issue with timestamp double-stamping npc chat lines.

pull/45/head
atom0s 8 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 @@
_addon.author = 'atom0s'; _addon.author = 'atom0s';
_addon.name = 'timestamp'; _addon.name = 'timestamp';
_addon.version = '3.0.0'; _addon.version = '3.0.1';
require 'common' require 'common'
@ -72,6 +72,17 @@ ashita.register_event('incoming_text', function(mode, message, modifiedmode, mod
message = modifiedmessage; message = modifiedmessage;
end 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.. -- Skip ignored chat modes..
local ignored = T{ local ignored = T{
-- Synergy -- Synergy

BIN
injector.exe

Binary file not shown.
Loading…
Cancel
Save