diff options
Diffstat (limited to 'modules/commands/ms_check.cpp')
-rw-r--r-- | modules/commands/ms_check.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/commands/ms_check.cpp b/modules/commands/ms_check.cpp index 5b031e8ec..59340b6d7 100644 --- a/modules/commands/ms_check.cpp +++ b/modules/commands/ms_check.cpp @@ -24,7 +24,6 @@ class CommandMSCheck : public Command void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { - User *u = source.u; const Anope::string &recipient = params[0]; @@ -44,7 +43,7 @@ class CommandMSCheck : public Command for (int i = mi->memos->size() - 1; i >= 0; --i) { - if (u->Account()->display.equals_ci(mi->GetMemo(i)->sender)) + if (source.nc->display.equals_ci(mi->GetMemo(i)->sender)) { found = true; /* Yes, we've found the memo */ |