From 99d6a2537f6fca70e86d175320de304f362cd7a3 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 5 Aug 2006 22:32:50 +0000 Subject: Dont try and cloak remote clients git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4727 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/modules/m_cloaking.cpp') 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')) -- cgit v1.3.1-10-gc9f91