diff options
| author | 2009-10-12 20:23:26 +0000 | |
|---|---|---|
| committer | 2009-10-12 20:23:26 +0000 | |
| commit | 4ab15e865571f78cd8ea22c47a1a3b7d3372a786 (patch) | |
| tree | 6a9cb24eb92502a6f3153d681ac3f3f5e584d61d /src/modules/m_exemptchanops.cpp | |
| parent | Fix some signedness. (diff) | |
| download | inspircd++-4ab15e865571f78cd8ea22c47a1a3b7d3372a786.tar.gz inspircd++-4ab15e865571f78cd8ea22c47a1a3b7d3372a786.tar.bz2 inspircd++-4ab15e865571f78cd8ea22c47a1a3b7d3372a786.zip | |
Make OnChannelRestrictionApply take a User* instead of a Membership* [jackmcbarn]
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11858 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_exemptchanops.cpp')
| -rw-r--r-- | src/modules/m_exemptchanops.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_exemptchanops.cpp b/src/modules/m_exemptchanops.cpp index ae2a80b02..83e21bef3 100644 --- a/src/modules/m_exemptchanops.cpp +++ b/src/modules/m_exemptchanops.cpp @@ -99,12 +99,12 @@ class ModuleExemptChanOps : public Module ec.DoSyncChannel(chan, proto, opaque); } - virtual ModResult OnChannelRestrictionApply(Membership* memb, Channel* chan, const char* restriction) + virtual ModResult OnChannelRestrictionApply(User* user, Channel* chan, const char* restriction) { irc::spacesepstream allowstream(alwaysexempt), denystream(neverexempt); std::string current; - if (memb->getRank() != OP_VALUE) + if (chan->GetPrefixValue(user) != OP_VALUE) return MOD_RES_PASSTHRU; // They're not opped, so we don't exempt them while(denystream.GetToken(current)) if (!strcasecmp(restriction, current.c_str())) return MOD_RES_PASSTHRU; // This mode is set to never allow exemptions in the config |
