summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-10 19:18:49 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-10 19:18:49 +0000
commitcd26d2b6a61dfbee366883bbf14da0aed33d620f (patch)
tree38b25d057eeebc8e99f2dc762094ed5802ea23d9 /src
parentc2bee07bc22ab254c78b0887319c36d183103ac5 (diff)
Whoops, make /stats s work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5675 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_filter_pcre.cpp1
-rw-r--r--src/modules/m_filter.cpp1
-rw-r--r--src/modules/m_filter.h7
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;