m_filter: Do not attempt to filter messages from remote users

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11362 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
special 2009-05-05 23:43:40 +00:00
parent fa3e1d5d4d
commit afdc66c2ce

View File

@ -251,19 +251,22 @@ FilterBase::~FilterBase()
int FilterBase::OnUserPreMessage(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
if (!IS_LOCAL(user))
return 0;
flags = FLAG_PRIVMSG;
return OnUserPreNotice(user,dest,target_type,text,status,exempt_list);
}
int FilterBase::OnUserPreNotice(User* user,void* dest,int target_type, std::string &text, char status, CUList &exempt_list)
{
if (!flags)
flags = FLAG_NOTICE;
/* Leave ulines alone */
if ((ServerInstance->ULine(user->server)) || (!IS_LOCAL(user)))
return 0;
if (!flags)
flags = FLAG_NOTICE;
FilterResult* f = this->FilterMatch(user, text, flags);
if (f)
{