From 41fd346a6e9be1492017d6b9ddb39623ec98ad49 Mon Sep 17 00:00:00 2001 From: zeb <37308742+zeb139@users.noreply.github.com> Date: Tue, 11 Nov 2025 22:33:33 -0500 Subject: [PATCH] improved module disablement when AuctionHouseBot.GUIDs is not configured --- src/AuctionHouseBot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index f4d4be0..ca90d71 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -1814,9 +1814,9 @@ bool AuctionHouseBot::IsModuleEnabled() if (sellerEnabled == false && buyerEnabled == false) return false; string charString = sConfigMgr->GetOption("AuctionHouseBot.GUIDs", "0"); - if (charString == "0") + if (charString == "0" || charString.empty()) { - LOG_INFO("module", "AuctionHouseBot: AuctionHouseBot.GUIDs is '0' so this module will be disabled"); + LOG_INFO("module", "AuctionHouseBot: AuctionHouseBot.GUIDs is not configured so this module will be disabled"); return false; } return true;