summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-14 00:47:57 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-14 00:47:57 +0000
commitb70a2f3e35957bc4951260618710ae452c0f8f6b (patch)
tree6153c937c89c51b816889bc7604076dc078dc36c /src
parent09197a4a21d0922d92407902db0019ee4670aa9f (diff)
dont try and cloak if no valid cloak was returned (eg. localhost)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10542 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cloaking.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 3c057aabc..6163b41b7 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -105,11 +105,12 @@ class CloakUser : public ModeHandler
/* Force creation of missing cloak */
Sender->OnUserConnect(dest);
}
-
- dest->GetExt("cloaked_host", cloak);
- dest->ChangeDisplayedHost(cloak->c_str());
- dest->SetMode('x',true);
- return MODEACTION_ALLOW;
+ if (dest->GetExt("cloaked_host", cloak))
+ {
+ dest->ChangeDisplayedHost(cloak->c_str());
+ dest->SetMode('x',true);
+ return MODEACTION_ALLOW;
+ }
}
}
else