Make note adding run a second after adding friends

To make sure newly added friends are reflected in the friends numbers
This commit is contained in:
2024-10-13 23:59:09 +02:00
parent 4a25636a1d
commit f272766915

View File

@@ -6,7 +6,7 @@ WeakAurasSaved.Cyka.Stinkies = {
["Riener"] = true,
["Unwashed"] = true,
["Ловилуну"] = true,
["Фоська"] = true, -- if she comes here to orgrimmar. then she will be with 1 or 2 friends. they can be killed. but it may be difficult
["Фоська"] = true, -- if she comes here to orgrimmar. then she will be with 1 or 2 friends. they can be killed. but it may be difficult
["Korovadura"] = true,
["Pizdosorkam"] = true,
["Неонанируй"] = true,
@@ -92,20 +92,23 @@ for k, v in pairs(WeakAurasSaved.Cyka.Stinkies) do
AddFriend(k)
end
end
for i = 1, numfriends do
local name = GetFriendInfo(i)
if WeakAurasSaved.Cyka.Stinkies[name] then
C_Timer.After(1, function()
-- print(name .. " " .. i .. " Stinky!")
SetFriendNotes(i, "STINKY")
end)
else
C_Timer.After(1, function()
-- print(name .. " " .. i .. " Not stinky")
SetFriendNotes(i, "Not stinky?")
end)
C_Timer.After(1, function()
local numfriends = GetNumFriends()
for i = 1, numfriends do
local name = GetFriendInfo(i)
if WeakAurasSaved.Cyka.Stinkies[name] then
C_Timer.After(1, function()
-- print(name .. " " .. i .. " Stinky!")
SetFriendNotes(i, "STINKY")
end)
else
C_Timer.After(1, function()
-- print(name .. " " .. i .. " Not stinky")
SetFriendNotes(i, "Not stinky?")
end)
end
end
end
end)
--/run WeakAurasSaved.Cyka.Stinkies["Totleta"] = true
-- /dump WeakAurasSaved.Cyka.Stinkies