From 5e7ff22cc125a0bc325ba78fdcdc1fc10d14da23 Mon Sep 17 00:00:00 2001 From: MrIron Date: Thu, 6 Aug 2026 13:42:46 +0200 Subject: [PATCH] Fixed wrong command name after merge. --- mod.cservice/STATUSCommand.cc | 3 ++- mod.cservice/WCommand.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mod.cservice/STATUSCommand.cc b/mod.cservice/STATUSCommand.cc index 2138935c..32bfae82 100644 --- a/mod.cservice/STATUSCommand.cc +++ b/mod.cservice/STATUSCommand.cc @@ -130,7 +130,8 @@ bool STATUSCommand::Exec(iClient* theClient, const string& Message) { } #ifdef THERETURN_ENABLED - if (theChan->hasW()) { + if (theChan->hasW() && + (bot->getConfigVar("THERETURN_INTEGRATION")->asInt() != 0 || admLevel >= 750)) { bot->Notice(theClient, "The channel is also registered with %s.", bot->getConfwNickName().c_str()); } diff --git a/mod.cservice/WCommand.cc b/mod.cservice/WCommand.cc index ce8ce203..e0afca30 100644 --- a/mod.cservice/WCommand.cc +++ b/mod.cservice/WCommand.cc @@ -223,7 +223,7 @@ bool WCommand::Exec(iClient* theClient, const string& Message) { bot->Write(xQuery); return true; - } else if (Command == "PURGE") { + } else if (Command == "XPURGE") { /* Admin? */ if (admLevel < 750) { bot->Notice( @@ -251,7 +251,7 @@ bool WCommand::Exec(iClient* theClient, const string& Message) { } else { bot->Notice(theClient, "%s is flagged as registered with %s in my records. To manually update my " - "records, use /msg X W PURGE %s -f to force unregistration. This should " + "records, use /msg X W XPURGE %s -f to force unregistration. This should " "ONLY be used if %s is already purged with %s", theChan->getName().c_str(), wClient->getNickName().c_str(), theChan->getName().c_str(), theChan->getName().c_str(),