From 5eb849fba46f91d5cddbd2eb7f9ade5abbb9f4c6 Mon Sep 17 00:00:00 2001 From: peavey Date: Thu, 12 Feb 2009 19:27:08 +0000 Subject: 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 --- src/modules/m_silence.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules') 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); } -- cgit v1.2.3