diff options
| author | 2021-10-06 00:41:56 +0100 | |
|---|---|---|
| committer | 2021-10-06 00:41:56 +0100 | |
| commit | 4a01be0d15f2c051a101d4b832261efe0f8b90c5 (patch) | |
| tree | 3f0c53c584eb9477e0454ad1b557746c2d8a7782 /src/modules/m_customtitle.cpp | |
| parent | Make the deprecation of LibreSSL support more explicit. (diff) | |
Fix showing the address of a custom title instead of the title.
Diffstat (limited to 'src/modules/m_customtitle.cpp')
| -rw-r--r-- | src/modules/m_customtitle.cpp | 6 |
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; |
