summaryrefslogtreecommitdiff
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.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_customtitle.cpp b/src/modules/m_customtitle.cpp
index b15b308d0..769b8ec4d 100644
--- a/src/modules/m_customtitle.cpp
+++ b/src/modules/m_customtitle.cpp
@@ -125,8 +125,7 @@ class ModuleCustomTitle : public Module
{
/* Insert our numeric before 312 */
std::string* ctitle;
- dest->GetExt("ctitle", ctitle);
- if (ctitle)
+ if (dest->GetExt("ctitle", ctitle))
{
ServerInstance->SendWhoisLine(user, dest, 320, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), ctitle->c_str());
}