summaryrefslogtreecommitdiff
path: root/modules/extra/m_statusupdate.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-09 04:38:35 -0400
committerAdam <Adam@anope.org>2011-08-09 04:38:35 -0400
commit8116ad9b2885b69680bd3bed6b784d434b223a5b (patch)
tree22e8a172c2135144d6976649ad46145896d81cc1 /modules/extra/m_statusupdate.cpp
parentcb7435982c0e04268439f38fb4341ecbe338b625 (diff)
Added forgotten founder checks to cs_access, fixed fantasy replies to come from the right service, and fixed the accessgroup operators to acount for founder/superadmin
Diffstat (limited to 'modules/extra/m_statusupdate.cpp')
-rw-r--r--modules/extra/m_statusupdate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/extra/m_statusupdate.cpp b/modules/extra/m_statusupdate.cpp
index 2b23492ec..6f98c1345 100644
--- a/modules/extra/m_statusupdate.cpp
+++ b/modules/extra/m_statusupdate.cpp
@@ -41,10 +41,9 @@ class StatusUpdate : public Module
if (access->Matches(user, user->Account()))
{
for (int i = 0; modeInfo[i].priv != CA_SIZE; ++i)
- if (access->HasPriv(modeInfo[i].priv))
- ci->c->SetMode(NULL, modeInfo[i].name, user->nick);
- else
+ if (!access->HasPriv(modeInfo[i].priv))
ci->c->RemoveMode(NULL, modeInfo[i].name, user->nick);
+ chan_set_correct_modes(user, ci->c, 1);
}
}
}