From c2bee07bc22ab254c78b0887319c36d183103ac5 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Nov 2006 18:58:54 +0000 Subject: Add /stats s git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5674 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_filter_pcre.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp index a7829871f..0991c7def 100644 --- a/src/modules/extra/m_filter_pcre.cpp +++ b/src/modules/extra/m_filter_pcre.cpp @@ -149,6 +149,20 @@ class ModuleFilterPCRE : public FilterBase } } } + + virtual int OnStats(char symbol, userrec* user, string_list &results) + { + if (symbol == 's') + { + std::string sn = ServerInstance->Config->ServerName; + for (std::vector::iterator i = filters.begin(); i != filters.end(); i++) + { + results.push_back(sn+" 223 "+user->nick+" :"+i->freeform+" "+i->action+" "+ConvToStr(i->gline_time)+" :"+i->reason); + } + return 1; + } + return 0; + } }; -- cgit v1.2.3