From 721afed9afdb0c71bbb07b8872fc65b765f8d7e8 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 12 Jan 2017 19:53:13 +0100 Subject: [PATCH] panel: fix guild info without guild --- modules/panel.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/panel.lua b/modules/panel.lua index eb5d29ea..3c67fc35 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -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"