summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 22:32:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-05 22:32:50 +0000
commit99d6a2537f6fca70e86d175320de304f362cd7a3 (patch)
treeaa05ef823ccd0a7237828f01396f77f4694eb620
parent1b67662bc821eb1d0edb2578fdc637193884f24c (diff)
Dont try and cloak remote clients
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4727 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_cloaking.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index 717bbc436..fd90fd9a9 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -290,7 +290,13 @@ class CloakUser : public ModeHandler
/* Only opers can change other users modes */
if ((source != dest) && (!*source->oper))
return MODEACTION_DENY;
-
+
+ /* For remote clients, we dont take any action, we just allow it.
+ * The local server where they are will set their cloak instead.
+ */
+ if (!IS_LOCAL(dest))
+ return MODEACTION_ALLOW;
+
if (adding)
{
if(!dest->IsModeSet('x'))