diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-21 22:05:45 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-21 22:05:45 +0000 |
commit | 8054398f76b694933d7924e7485915037b0d9c46 (patch) | |
tree | d25c783c56f462ff7ae75b3bae0a64c437737e18 /src | |
parent | 92d179769cc3da365f56944e9dad203ab084532f (diff) |
oper-immune filters should be fixed now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7493 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_filter.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index f2986804c..9c9a1238e 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -15,7 +15,6 @@ enum FilterFlags { - FLAG_NOOPERS = 1, FLAG_PART = 2, FLAG_QUIT = 4, FLAG_PRIVMSG = 8, @@ -209,7 +208,7 @@ class cmd_filter : public command_t bool FilterBase::AppliesToMe(userrec* user, FilterResult* filter, int flags) { - if ((flags & FLAG_NOOPERS) && (filter->flag_no_opers) && IS_OPER(user)) + if ((filter->flag_no_opers) && IS_OPER(user)) return false; if ((flags & FLAG_PRIVMSG) && (!filter->flag_privmsg)) return false; |