summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 13:59:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-04 13:59:29 +0000
commitf7a28a7800d934b3bcd630a97bb6471eb1007140 (patch)
tree877915c370df4b359dfa86f36c43aefc1400b923 /src/modules/m_silence.cpp
parent3f971b447fae258a92f2cc6645497cce93f1c04e (diff)
Server origin privmsg, UNTESTED - will test in a min
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9306 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 4c0dd01be..1a554cf63 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -381,6 +381,10 @@ class ModuleSilence : public Module
int MatchPattern(User* dest, User* source, int pattern)
{
+ /* Server source */
+ if (!source)
+ return 1;
+
silencelist* sl;
dest->GetExt("silence_list", sl);
if (sl)