From 6e1f90b505c6081c8b5c4d3327a3b8627a17b770 Mon Sep 17 00:00:00 2001 From: dz Date: Fri, 27 Mar 2009 22:09:30 +0000 Subject: Report the filter type the user supplied instead of the pattern when reporting an invalid type in m_filter, fixes bug #802 spotted by Taros. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11269 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 3bbdf0eb4..bb99ffa60 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -167,7 +167,7 @@ class CommandFilter : public Command if ((type != "gline") && (type != "none") && (type != "block") && (type != "kill") && (type != "silent")) { - user->WriteServ("NOTICE %s :*** Invalid filter type '%s'. Supported types are 'gline', 'none', 'block', 'silent' and 'kill'.", user->nick.c_str(), freeform.c_str()); + user->WriteServ("NOTICE %s :*** Invalid filter type '%s'. Supported types are 'gline', 'none', 'block', 'silent' and 'kill'.", user->nick.c_str(), type.c_str()); return CMD_FAILURE; } -- cgit v1.2.3