mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
panel: fix guild info without guild
This commit is contained in:
+5
-1
@@ -255,7 +255,11 @@ pfUI:RegisterModule("panel", function ()
|
||||
local online = GetNumGuildMembers()
|
||||
local all = GetNumGuildMembers(true)
|
||||
local click = function() ToggleFriendsFrame(3) end
|
||||
pfUI.panel:OutputPanel("guild", "Guild: "..online, nil, click)
|
||||
if not GetGuildInfo("player") then
|
||||
pfUI.panel:OutputPanel("guild", "Guild: N/A", nil, click)
|
||||
else
|
||||
pfUI.panel:OutputPanel("guild", "Guild: "..online, nil, click)
|
||||
end
|
||||
end
|
||||
|
||||
-- Update "durability"
|
||||
|
||||
Reference in New Issue
Block a user