]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_customtitle.cpp
Forward port r10133.
[user/henk/code/inspircd.git] / src / modules / m_customtitle.cpp
index b15b308d080d7e6e9859672af1bc343cb91ae322..769b8ec4da70147fd985b0706ce575b304d99686 100644 (file)
@@ -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());
                        }