1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 22:13:12 +02:00

Allow userless command sources

This commit is contained in:
Adam
2012-06-18 05:04:30 -04:00
parent 873d4287de
commit 2dec8e767a
153 changed files with 1029 additions and 1060 deletions
+1 -2
View File
@@ -24,7 +24,6 @@ class CommandMSCheck : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) 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 */