Загрузить файлы в «/»
This commit is contained in:
@@ -21,6 +21,7 @@ local function Encode(c)
|
||||
end
|
||||
|
||||
function AA.Send(msg)
|
||||
if AA.db and AA.db.noChat then return end
|
||||
if IsInGuild and IsInGuild() then SendAddonMessage(AA.PREFIX, msg, "GUILD") end
|
||||
if GetNumRaidMembers() > 0 then
|
||||
SendAddonMessage(AA.PREFIX, msg, "RAID")
|
||||
@@ -40,6 +41,7 @@ function AA.ReceiveRecord(text)
|
||||
if not name or name == "" then return false end
|
||||
upd = tonumber(upd) or 0
|
||||
local k = name .. "-" .. realm
|
||||
if AA.db.ignored and AA.db.ignored[k] then return false end
|
||||
local c = AA.db.chars[k]
|
||||
if c and (c.updated or 0) > upd then return false end -- we already have newer data
|
||||
if not c then
|
||||
@@ -83,6 +85,7 @@ local function ReceiveAlt(text)
|
||||
string.find(text, "^A%^([^%^]*)%^([^%^]*)%^([^%^]*)%^(%d*)%^(%d*)%^(%d*)%^(%d*)%^(%d*)%^([^%^]*)%^(.*)$")
|
||||
if not name or name == "" then return false end
|
||||
local k = name .. "-" .. realm
|
||||
if AA.db.ignored and AA.db.ignored[k] then return false end
|
||||
local c = AA.db.chars[k]
|
||||
if not c then
|
||||
c = { name = name, realm = realm, class = class, cds = {}, remote = true }
|
||||
@@ -132,6 +135,7 @@ local function ReceiveProf(text)
|
||||
if not name or name == "" or pname == "" then return false end
|
||||
if AA.BadProf(pname, tonumber(m)) then return false end
|
||||
local k = name .. "-" .. realm
|
||||
if AA.db.ignored and AA.db.ignored[k] then return false end
|
||||
local c = AA.db.chars[k]
|
||||
if not c then
|
||||
c = { name = name, realm = realm, cds = {}, remote = true }
|
||||
@@ -174,6 +178,7 @@ local function ReceiveEquip(text)
|
||||
local _, _, name, realm, ts, body = string.find(text, "^E%^([^%^]*)%^([^%^]*)%^(%d*)%^(.*)$")
|
||||
if not name or name == "" then return false end
|
||||
local k = name .. "-" .. realm
|
||||
if AA.db.ignored and AA.db.ignored[k] then return false end
|
||||
local c = AA.db.chars[k]
|
||||
if not c then
|
||||
c = { name = name, realm = realm, cds = {}, remote = true }
|
||||
@@ -201,6 +206,7 @@ local function ReceiveBags(text)
|
||||
string.find(text, "^B%^([^%^]*)%^([^%^]*)%^(%d*)%^(%d*)%^([^%^]*)%^(.*)$")
|
||||
if not name or name == "" then return false end
|
||||
local k = name .. "-" .. realm
|
||||
if AA.db.ignored and AA.db.ignored[k] then return false end
|
||||
local c = AA.db.chars[k]
|
||||
if not c then
|
||||
c = { name = name, realm = realm, cds = {}, remote = true }
|
||||
|
||||
Reference in New Issue
Block a user