From f62c05362356f20a5741b221f1e01eef92fcbf8b Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 13 Sep 2008 13:58:16 +0000 Subject: Optimisation git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10538 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') 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 }; -- cgit v1.2.3