diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-12 19:27:08 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-12 19:27:08 +0000 |
commit | 5eb849fba46f91d5cddbd2eb7f9ade5abbb9f4c6 (patch) | |
tree | 38f0c24bb551765eb75f6f265f779df8d11b24cc /src | |
parent | 7fe04dadc17c8de1f3a40f362ab44db7bad5f4d2 (diff) |
Forward port r11094:
====================
Check if dest user is local, since this is the user we are going to GetExt on, so the check was reverse. Fixes bug #716 reported by Darom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11095 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_silence.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 488389bea..d9d55f14b 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -345,10 +345,7 @@ class ModuleSilence : public Module virtual int PreText(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list, int silence_type) { - if (!IS_LOCAL(user)) - return 0; - - if (target_type == TYPE_USER) + if (target_type == TYPE_USER && IS_LOCAL(((User*)dest))) { return MatchPattern((User*)dest, user, silence_type); } |