From 4a01be0d15f2c051a101d4b832261efe0f8b90c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 6 Oct 2021 00:41:56 +0100 Subject: Fix showing the address of a custom title instead of the title. --- src/modules/m_customtitle.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/m_customtitle.cpp') diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp index a51030602..36a974301 100644 --- a/src/modules/m_customtitle.cpp +++ b/src/modules/m_customtitle.cpp @@ -154,10 +154,8 @@ class ModuleCustomTitle : public Module, public Whois::LineEventListener { /* Insert our numeric before 312 */ const std::string* ctitle = cmd.ctitle.get(whois.GetTarget()); - if (ctitle) - { - whois.SendLine(RPL_WHOISSPECIAL, ctitle); - } + if (ctitle && !ctitle->empty()) + whois.SendLine(RPL_WHOISSPECIAL, *ctitle); } /* Don't block anything */ return MOD_RES_PASSTHRU; -- cgit v1.3.1-10-gc9f91