diff options
Diffstat (limited to 'src/modules/m_restrictchans.cpp')
-rw-r--r-- | src/modules/m_restrictchans.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_restrictchans.cpp b/src/modules/m_restrictchans.cpp index 9d17d59b1..10e7343ee 100644 --- a/src/modules/m_restrictchans.cpp +++ b/src/modules/m_restrictchans.cpp @@ -55,7 +55,7 @@ class ModuleRestrictChans : public Module { irc::string x = cname; if (!IS_LOCAL(user)) - return; + return 0; // user is not an oper and its not in the allow list if ((!IS_OPER(user)) && (allowchans.find(x) == allowchans.end())) |