diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-10 21:36:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-10 21:36:24 +0000 |
commit | c087c227040f6261ad0cc2f3d4bd149263619561 (patch) | |
tree | 29379c4f1fd33cb4a602b532bd48b61284338773 /src | |
parent | 25493049050dadfa08527c813f4209a09beab6a7 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_filter.h | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |