summaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-08-21 13:50:24 +0000
committerGravatar w00t2008-08-21 13:50:24 +0000
commit59fd8a5c10a60ebf67373e8b0fd7d6cf836723bf (patch)
tree7cfd65579c53b83fbf31ed91f027ae8cda2a2e48 /src/modules/m_restrictchans.cpp
parentApply to clictx too (diff)
Backport r10202
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10203 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp4
1 files changed, 4 insertions, 0 deletions
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()))
{