From c0090ae7eb5a2d615f5272e3ba71aba70ae486cd Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 10 Aug 2008 16:37:31 +0000 Subject: Forward port r10133. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10134 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_customtitle.cpp | 3 +-- src/modules/m_swhois.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules') 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()); } diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 4a9c38589..0d9adeb4d 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -112,8 +112,7 @@ class ModuleSWhois : public Module { /* Insert our numeric before 312 */ std::string* swhois; - dest->GetExt("swhois", swhois); - if (swhois) + if (dest->GetExt("swhois", swhois)) { ServerInstance->SendWhoisLine(user, dest, 320, "%s %s :%s",user->nick.c_str(), dest->nick.c_str(), swhois->c_str()); } -- cgit v1.2.3