diff options
-rw-r--r-- | src/modules/extra/m_filter_pcre.cpp | 1 | ||||
-rw-r--r-- | src/modules/m_filter.cpp | 1 | ||||
-rw-r--r-- | src/modules/m_filter.h | 7 |
3 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp index 0991c7def..80f5b3101 100644 --- a/src/modules/extra/m_filter_pcre.cpp +++ b/src/modules/extra/m_filter_pcre.cpp @@ -159,7 +159,6 @@ class ModuleFilterPCRE : public FilterBase { results.push_back(sn+" 223 "+user->nick+" :"+i->freeform+" "+i->action+" "+ConvToStr(i->gline_time)+" :"+i->reason); } - return 1; } return 0; } diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 30e7c2b05..7bbe5b56a 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -131,7 +131,6 @@ class ModuleFilter : public FilterBase { results.push_back(sn+" 223 "+user->nick+" :"+n->second->freeform+" "+n->second->action+" "+ConvToStr(n->second->gline_time)+" :"+n->second->reason); } - return 1; } return 0; } diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 3bccf2b2b..51f5d8b0a 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -62,7 +62,7 @@ class FilterBase : public Module virtual void OnSyncOtherMetaData(Module* proto, void* opaque); virtual void OnDecodeMetaData(int target_type, void* target, const std::string &extname, const std::string &extdata); - virtual int OnStats(char symbol, userrec* user, string_list &results); + virtual int OnStats(char symbol, userrec* user, string_list &results) = 0; }; class cmd_filter : public command_t @@ -163,11 +163,6 @@ FilterBase::~FilterBase() { } -int FilterBase::OnStats(char symbol, userrec* user, string_list &results) -{ - return 0; -} - void FilterBase::Implements(char* List) { List[I_OnStats] = List[I_OnSyncOtherMetaData] = List[I_OnDecodeMetaData] = List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnRehash] = 1; |