summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-31 01:32:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-31 01:32:51 +0000
commit52c02f79a1bc7806b5a664031780d2e10e953db9 (patch)
tree5a5b3520fd254a53881239e2e557d7b32fee8f98
parentca6ffba00473ccef893d0b72ae7b63d3a5efa81d (diff)
Thanks AnMaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6188 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_filter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h
index ba52ce70b..d21c8fc9c 100644
--- a/src/modules/m_filter.h
+++ b/src/modules/m_filter.h
@@ -221,12 +221,20 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters
if (command == "QUIT")
{
+ /* QUIT with no reason: nothing to do */
+ if (pcnt < 1)
+ return 0;
+
checkline = parameters[0];
replacepoint = 0;
parting = false;
}
else if (command == "PART")
{
+ /* PART with no reason: nothing to do */
+ if (pcnt < 2)
+ return 0;
+
checkline = parameters[1];
replacepoint = 1;
parting = true;