aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_customtitle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_customtitle.cpp')
-rw-r--r--src/modules/m_customtitle.cpp6
1 files changed, 2 insertions, 4 deletions
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;