summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-13 13:58:16 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-13 13:58:16 +0000
commitf62c05362356f20a5741b221f1e01eef92fcbf8b (patch)
tree74bc0404af8d9d90d5ab287ac59834f55e4cbc5c /src/modules
parent46f89e12959945a94f6ad81265351600badca723 (diff)
Optimisation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10538 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cloaking.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 4a9541324..3c057aabc 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -367,6 +367,10 @@ class ModuleCloaking : public Module
virtual void OnUserConnect(User* dest)
{
+ std::string* tofree;
+ if (dest->GetExt("cloaked_host", tofree))
+ return;
+
if (dest->host.find('.') != std::string::npos || dest->host.find(':') != std::string::npos)
{
unsigned int iv[] = { cu->key1, cu->key2, cu->key3, cu->key4 };