From b70a2f3e35957bc4951260618710ae452c0f8f6b Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 14 Sep 2008 00:47:57 +0000 Subject: 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 --- src/modules/m_cloaking.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/modules') 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 -- cgit v1.2.3