summaryrefslogtreecommitdiff
path: root/src/modules/m_restrictchans.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 13:49:40 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-08-21 13:49:40 +0000
commitc48da0d68b8312bea48e9d43984be2150124d605 (patch)
tree9f603cb65c3a0fbf282fa0ee40555ff1792f913e /src/modules/m_restrictchans.cpp
parent486ab0f5e20e82fcfac945b0b5a4031782710d82 (diff)
Don't even touch remote joins.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10202 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r--src/modules/m_restrictchans.cpp3
1 files changed, 3 insertions, 0 deletions
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()))
{