From 579e707f017ca237d260165992f0b72bafba152c Mon Sep 17 00:00:00 2001 From: danieldg Date: Mon, 12 Oct 2009 18:12:48 +0000 Subject: m_exemptchanops by jackmcbarn - channel mode +X to allow per-channel setting git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11855 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_messageflood.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_messageflood.cpp') diff --git a/src/modules/m_messageflood.cpp b/src/modules/m_messageflood.cpp index 542aedd41..8a521ebab 100644 --- a/src/modules/m_messageflood.cpp +++ b/src/modules/m_messageflood.cpp @@ -207,10 +207,10 @@ class ModuleMsgFlood : public Module ModResult ProcessMessages(User* user,Channel* dest, const std::string &text) { - if (!IS_LOCAL(user) || (CHANOPS_EXEMPT('f') && dest->GetPrefixValue(user) == OP_VALUE)) - { + ModResult res; + FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (dest->GetUser(user),dest,"flood")); + if (!IS_LOCAL(user) || res == MOD_RES_ALLOW) return MOD_RES_PASSTHRU; - } floodsettings *f = mf.ext.get(dest); if (f) -- cgit v1.3.1-10-gc9f91