from retail

This commit is contained in:
NoM0Re
2025-01-19 16:02:00 +01:00
parent 87c681b2f3
commit a643b275ba
11 changed files with 150 additions and 66 deletions
+4 -1
View File
@@ -146,6 +146,7 @@ local function filterFunc(_, event, msg, player, l, cs, t, flag, channelId, ...)
local newMsg = "";
local remaining = msg;
local done;
local anyLinkFound = false
repeat
local start, finish, characterName, displayName = remaining:find("%[WeakAuras: ([^%s]+) %- (.*)%]");
if(characterName and displayName) then
@@ -154,11 +155,13 @@ local function filterFunc(_, event, msg, player, l, cs, t, flag, channelId, ...)
newMsg = newMsg..remaining:sub(1, start-1);
newMsg = newMsg.."|HBNplayer::weakauras|h|cFF8800FF["..characterName.." |r|cFF8800FF- "..displayName.."]|h|r";
remaining = remaining:sub(finish + 1);
anyLinkFound = true
else
newMsg = newMsg .. remaining
done = true;
end
until(done)
if newMsg ~= "" then
if anyLinkFound then
if event == "CHAT_MSG_WHISPER" and not UnitInRaid(player) and not UnitInParty(player) then -- XXX: Need a guild check
local _, num = BNGetNumFriends()
for i=1, num do