From c48da0d68b8312bea48e9d43984be2150124d605 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 21 Aug 2008 13:49:40 +0000 Subject: Don't even touch remote joins. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10202 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_restrictchans.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 587ba24c1..9d17d59b1 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -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())) { -- cgit v1.2.3