diff options
| author | 2008-08-21 13:50:24 +0000 | |
|---|---|---|
| committer | 2008-08-21 13:50:24 +0000 | |
| commit | 59fd8a5c10a60ebf67373e8b0fd7d6cf836723bf (patch) | |
| tree | 7cfd65579c53b83fbf31ed91f027ae8cda2a2e48 | |
| parent | Apply to clictx too (diff) | |
Backport r10202
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10203 e03df62e-2008-0410-955e-edbf42e46eb7
| -rw-r--r-- | src/modules/m_restrictchans.cpp | 4 |
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())) { |
