summaryrefslogtreecommitdiff
path: root/src/modules/m_swhois.cpp
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-10 16:37:31 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-10 16:37:31 +0000
commitc0090ae7eb5a2d615f5272e3ba71aba70ae486cd (patch)
treed91d1566b9104e09e64895901cd86dcfa2de1974 /src/modules/m_swhois.cpp
parent49d8629c3f7dd38b21abe8c5d13f356efc21db4d (diff)
Forward port r10133.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10134 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_swhois.cpp')
-rw-r--r--src/modules/m_swhois.cpp3
1 files changed, 1 insertions, 2 deletions
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());
}