From c087c227040f6261ad0cc2f3d4bd149263619561 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 10 Nov 2006 21:36:24 +0000 Subject: Filtering should leave ulines alone, and not filter uline notices. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5680 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index ef69358f2..c7779e4e6 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -175,6 +175,10 @@ int FilterBase::OnUserPreMessage(userrec* user,void* dest,int target_type, std:: int FilterBase::OnUserPreNotice(userrec* user,void* dest,int target_type, std::string &text, char status) { + /* Leave ulines alone */ + if (ServerInstance->ULine(user->server)) + return 0; + FilterResult* f = this->FilterMatch(text); if (f) { -- cgit v1.2.3