summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlethality <lethality@anope.org>2011-01-28 00:09:34 +0000
committerlethality <lethality@anope.org>2011-01-28 00:09:34 +0000
commit9910aa3cc63cce81b3967a16a99d3f92d9e95f68 (patch)
tree3fe83b25cfdaaf9bbce6cfb3c7db3b08358ab1a0
parent2a53e5f80e7ffeb26742831fd109dc62a3829a81 (diff)
Bug #1237 - only set umode +h on a user joining help chan if they have op access
-rw-r--r--modules/extra/m_helpchan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_helpchan.cpp b/modules/extra/m_helpchan.cpp
index 56dddbb95..028e5e332 100644
--- a/modules/extra/m_helpchan.cpp
+++ b/modules/extra/m_helpchan.cpp
@@ -29,7 +29,7 @@ class HelpChannel : public Module
{
User *u = finduser(param);
- if (u)
+ if (u && check_access(u, c->ci, CA_OPDEOPME))
u->SetMode(OperServ, UMODE_HELPOP);
}