summaryrefslogtreecommitdiff
path: root/src/modules/m_nonotice.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-04 14:03:42 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-04 14:03:42 +0000
commite21214f274c9bd4e831c3512e3365d16d79ef8d2 (patch)
tree64410ddc3ec2fef99bf156281a02b435921b293a /src/modules/m_nonotice.cpp
parenta8b19c295d3a105005d47ef9de04412fcb14d2e8 (diff)
Fix exemptchanops for some modules, fixes bug #485 reported by John. Thanks.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nonotice.cpp')
-rw-r--r--src/modules/m_nonotice.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/m_nonotice.cpp b/src/modules/m_nonotice.cpp
index 11b57e09b..12b36c23f 100644
--- a/src/modules/m_nonotice.cpp
+++ b/src/modules/m_nonotice.cpp
@@ -68,9 +68,14 @@ class ModuleNoNotice : public Module
Channel* c = (Channel*)dest;
if (c->IsModeSet('T'))
{
- if ((ServerInstance->ULine(user->server)) || (c->GetStatus(user) == STATUS_OP) || (c->GetStatus(user) == STATUS_HOP))
+ if (ServerInstance->ULine(user->server))
{
- // ops and halfops can still /NOTICE the channel
+ // ulines are exempt.
+ return 0;
+ }
+ else if (CHANOPS_EXEMPT(ServerInstance, 'T') && c->GetStatus(user) == STATUS_OP)
+ {
+ // channel ops are exempt if set in conf.
return 0;
}
else