From e5ea4ee3fb5bf03f16442527d17e29daea77ec28 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Nov 2006 19:23:39 +0000 Subject: Make /stats s more detailed, fix a grammar error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5676 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_filter_pcre.cpp | 2 +- src/modules/m_filter.cpp | 2 +- src/modules/m_filter.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp index 80f5b3101..2a6ce3061 100644 --- a/src/modules/extra/m_filter_pcre.cpp +++ b/src/modules/extra/m_filter_pcre.cpp @@ -157,7 +157,7 @@ class ModuleFilterPCRE : public FilterBase 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); + results.push_back(sn+" 223 "+user->nick+" :REGEXP:"+i->freeform+" "+i->action+" "+ConvToStr(i->gline_time)+" :"+i->reason); } } return 0; diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 7bbe5b56a..1074b27bb 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -129,7 +129,7 @@ class ModuleFilter : public FilterBase std::string sn = ServerInstance->Config->ServerName; for (filter_t::iterator n = filters.begin(); n != filters.end(); n++) { - results.push_back(sn+" 223 "+user->nick+" :"+n->second->freeform+" "+n->second->action+" "+ConvToStr(n->second->gline_time)+" :"+n->second->reason); + results.push_back(sn+" 223 "+user->nick+" :GLOB:"+n->second->freeform+" "+n->second->action+" "+ConvToStr(n->second->gline_time)+" :"+n->second->reason); } } return 0; diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 51f5d8b0a..6d640f1a6 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -127,7 +127,7 @@ class cmd_filter : public command_t std::pair result = Base->AddFilter(freeform, type, reason, duration); if (result.first) { - user->WriteServ("NOTICE %s :*** Added filter '%s', type '%s%s%s', reason: '%s'", user->nick, freeform.c_str(), + user->WriteServ("NOTICE %s :*** Added filter '%s', type '%s'%s%s, reason: '%s'", user->nick, freeform.c_str(), type.c_str(), (duration ? " duration: " : ""), (duration ? parameters[2] : ""), reason.c_str()); return CMD_SUCCESS; -- cgit v1.2.3