diff options
| author | 2008-08-21 13:49:40 +0000 | |
|---|---|---|
| committer | 2008-08-21 13:49:40 +0000 | |
| commit | c48da0d68b8312bea48e9d43984be2150124d605 (patch) | |
| tree | 9f603cb65c3a0fbf282fa0ee40555ff1792f913e /src/modules/m_restrictchans.cpp | |
| parent | Use ERR_BANNEDFROMCHAN, not ERR_TOOMANYCHANNELS (diff) | |
| download | inspircd++-c48da0d68b8312bea48e9d43984be2150124d605.tar.gz inspircd++-c48da0d68b8312bea48e9d43984be2150124d605.tar.bz2 inspircd++-c48da0d68b8312bea48e9d43984be2150124d605.zip | |
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.cpp | 3 |
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())) { |
