From 52c02f79a1bc7806b5a664031780d2e10e953db9 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 31 Dec 2006 01:32:51 +0000 Subject: Thanks AnMaster git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6188 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- cgit v1.2.3