summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 14:44:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 14:44:02 +0000
commit8fc3c90385f2c2a327e1cfbe47bf959802177d40 (patch)
tree46732c3a5230052e3cd290b0a09321f4d1d1160c /src/modules/m_silence.cpp
parent001861f5d2aca21531b0a20a46e44654a45a5522 (diff)
Extra safety required by recent changes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9309 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp2
1 files changed, 1 insertions, 1 deletions
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;