From 8fc3c90385f2c2a327e1cfbe47bf959802177d40 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 4 Apr 2008 14:44:02 +0000 Subject: Extra safety required by recent changes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9309 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_silence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 1a554cf63..2a8fbae94 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -382,7 +382,7 @@ class ModuleSilence : public Module int MatchPattern(User* dest, User* source, int pattern) { /* Server source */ - if (!source) + if (!source || !dest) return 1; silencelist* sl; -- cgit v1.2.3