From 516655d85fbf3234052cf8c69748a735bb09543b Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 28 May 2007 22:51:56 +0000 Subject: This works now! Still more to do though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7181 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 9d0fff34b..6bf112107 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -15,11 +15,11 @@ enum FilterFlags { - FLAG_NOOPERS, - FLAG_PART, - FLAG_QUIT, - FLAG_PRIVMSG, - FLAG_NOTICE + FLAG_NOOPERS = 1, + FLAG_PART = 2, + FLAG_QUIT = 4, + FLAG_PRIVMSG = 8, + FLAG_NOTICE = 16 }; class FilterResult : public classbase @@ -43,8 +43,9 @@ class FilterResult : public classbase this->FillFlags(flags); } - int FillFlags(const std::string &flags) + int FillFlags(const std::string &fl) { + flags = fl; flag_no_opers = flag_part_message = flag_quit_message = flag_privmsg = flag_notice = false; size_t x = 0; -- cgit v1.2.3