diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-09 18:17:02 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-10 13:34:25 +0100 |
commit | 9351debd73cb22f33bc46c201c9d66ec09ea773e (patch) | |
tree | be92bdd1d1f288f375d6ff7fa00afc3db75e255d /modules/memoserv/memoserv.cpp | |
parent | 40d558ef21a438bf1dff9ac522cd852166fc4c44 (diff) |
Expand GetQueryCommand to take a command name.
Diffstat (limited to 'modules/memoserv/memoserv.cpp')
-rw-r--r-- | modules/memoserv/memoserv.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/memoserv/memoserv.cpp b/modules/memoserv/memoserv.cpp index a7baa4daf..a95a1fd87 100644 --- a/modules/memoserv/memoserv.cpp +++ b/modules/memoserv/memoserv.cpp @@ -101,7 +101,10 @@ public: if (ci->AccessFor(cu->user).HasPriv("MEMO")) { if (cu->user->IsIdentified() && cu->user->Account()->HasExt("MEMO_RECEIVE")) - cu->user->SendMessage(MemoServ, MEMO_NEW_X_MEMO_ARRIVED, ci->name.c_str(), MemoServ->GetQueryCommand().c_str(), ci->name.c_str(), mi->memos->size()); + { + cu->user->SendMessage(MemoServ, MEMO_NEW_X_MEMO_ARRIVED, ci->name.c_str(), MemoServ->GetQueryCommand("memoserv/read").c_str(), + ci->name.c_str(), mi->memos->size()); + } } } } @@ -116,7 +119,7 @@ public: { User *user = User::Find(na->nick, true); if (user && user->IsIdentified()) - user->SendMessage(MemoServ, MEMO_NEW_MEMO_ARRIVED, source.c_str(), MemoServ->GetQueryCommand().c_str(), mi->memos->size()); + user->SendMessage(MemoServ, MEMO_NEW_MEMO_ARRIVED, source.c_str(), MemoServ->GetQueryCommand("memoserv/read").c_str(), mi->memos->size()); } } @@ -229,8 +232,9 @@ public: if (!params.empty() || source.c || source.service != *MemoServ) return; source.Reply(_(" \n" - "Type \002%s HELP \037command\037\002 for help on any of the\n" - "above commands."), MemoServ->GetQueryCommand().c_str()); + "Type \002%s \037command\037\002 for help on any of the\n" + "above commands."), + MemoServ->GetQueryCommand("generic/help").c_str()); } }; |