summaryrefslogtreecommitdiff
path: root/src/memos.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/memos.cpp')
-rw-r--r--src/memos.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memos.cpp b/src/memos.cpp
index 141dcbb42..891b09aff 100644
--- a/src/memos.cpp
+++ b/src/memos.cpp
@@ -114,7 +114,7 @@ void MemoInfo::Del(unsigned index)
bool MemoInfo::HasIgnore(User *u)
{
for (unsigned i = 0; i < this->ignores.size(); ++i)
- if (u->nick.equals_ci(this->ignores[i]) || (u->Account() && u->Account()->display.equals_ci(this->ignores[i])) || Anope::Match(u->GetMask(), Anope::string(this->ignores[i])))
+ if (u->nick.equals_ci(this->ignores[i]) || (u->IsIdentified() && u->Account()->display.equals_ci(this->ignores[i])) || Anope::Match(u->GetMask(), Anope::string(this->ignores[i])))
return true;
return false;
}