summaryrefslogtreecommitdiff
path: root/src/core/ms_cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ms_cancel.c')
-rw-r--r--src/core/ms_cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ms_cancel.c b/src/core/ms_cancel.c
index 601b90c4d..2a2f67b4d 100644
--- a/src/core/ms_cancel.c
+++ b/src/core/ms_cancel.c
@@ -46,7 +46,7 @@ class CommandMSCancel : public Command
for (i = mi->memos.size() - 1; i >= 0; --i)
{
- if ((mi->memos[i]->HasFlag(MF_UNREAD)) && !stricmp(mi->memos[i]->sender.c_str(), u->nc->display) && !mi->memos[i]->HasFlag(MF_NOTIFYS))
+ if ((mi->memos[i]->HasFlag(MF_UNREAD)) && !stricmp(mi->memos[i]->sender.c_str(), u->Account()->display) && !mi->memos[i]->HasFlag(MF_NOTIFYS))
{
delmemo(mi, mi->memos[i]->number);
notice_lang(Config.s_MemoServ, u, MEMO_CANCELLED, name);