mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
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:
parent
fa3e1d5d4d
commit
afdc66c2ce
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user