]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't even touch remote joins.
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 21 Aug 2008 13:49:40 +0000 (13:49 +0000)
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 21 Aug 2008 13:49:40 +0000 (13:49 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10202 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_restrictchans.cpp

index 587ba24c1254c36f6d895d37d0b077ce922550ee..9d17d59b13c8d667851774bc964abbd443e21b12 100644 (file)
@@ -54,6 +54,9 @@ class ModuleRestrictChans : public Module
        virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven)
        {
                irc::string x = cname;
+               if (!IS_LOCAL(user))
+                       return;
+
                // user is not an oper and its not in the allow list
                if ((!IS_OPER(user)) && (allowchans.find(x) == allowchans.end()))
                {