From 59fd8a5c10a60ebf67373e8b0fd7d6cf836723bf Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 21 Aug 2008 13:50:24 +0000 Subject: Backport r10202 git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10203 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_restrictchans.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 7f05660d7..1e18788d8 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -59,6 +59,10 @@ class ModuleRestrictChans : public Module virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname, std::string &privs) { irc::string x = cname; + + if (!IS_LOCAL(user)) + return 0; + // user is not an oper and its not in the allow list if ((!IS_OPER(user)) && (allowchans.find(x) == allowchans.end())) { -- cgit v1.3.1-10-gc9f91