summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-27 22:09:30 +0000
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-03-27 22:09:30 +0000
commit6e1f90b505c6081c8b5c4d3327a3b8627a17b770 (patch)
treebb9f72ddad9c6e36f623041f3a98573e57bf1b93 /src/modules
parente19797a3fafa5192a836cd2ebbc31d73bd5fb4aa (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_filter.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}