diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:16:32 +0100 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-10-22 16:29:22 +0100 |
| commit | f1751dcb213b953ff362eda3276e210258a7cdb2 (patch) | |
| tree | fab818dd75eaafee74d0b80e9d3da3e28aa0244c /modules/memoserv | |
| parent | 8b026135492c13ae030b27cb6ec6c5b09131c0bd (diff) | |
Replace usestrictprivmsg with something actually useful.
Every IRC server we support (other than Bahamut which is probably
on the chopping bock) uses UIDs so this setting does nothing.
Instead, allow configuring a server-side alias for each service
and use that when servicealias is enabled.
Diffstat (limited to 'modules/memoserv')
| -rw-r--r-- | modules/memoserv/memoserv.cpp | 8 | ||||
| -rw-r--r-- | modules/memoserv/ms_read.cpp | 4 | ||||
| -rw-r--r-- | modules/memoserv/ms_set.cpp | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/memoserv/memoserv.cpp b/modules/memoserv/memoserv.cpp index 3b2a521c7..219d4b33e 100644 --- a/modules/memoserv/memoserv.cpp +++ b/modules/memoserv/memoserv.cpp @@ -101,7 +101,7 @@ public: if (ci->AccessFor(cu->user).HasPriv("MEMO")) { if (cu->user->Account() && cu->user->Account()->HasExt("MEMO_RECEIVE")) - cu->user->SendMessage(MemoServ, MEMO_NEW_X_MEMO_ARRIVED, ci->name.c_str(), Config->StrictPrivmsg.c_str(), MemoServ->nick.c_str(), ci->name.c_str(), mi->memos->size()); + cu->user->SendMessage(MemoServ, MEMO_NEW_X_MEMO_ARRIVED, ci->name.c_str(), MemoServ->GetQueryCommand().c_str(), ci->name.c_str(), mi->memos->size()); } } } @@ -116,7 +116,7 @@ public: { User *user = User::Find(na->nick, true); if (user && user->IsIdentified()) - user->SendMessage(MemoServ, MEMO_NEW_MEMO_ARRIVED, source.c_str(), Config->StrictPrivmsg.c_str(), MemoServ->nick.c_str(), mi->memos->size()); + user->SendMessage(MemoServ, MEMO_NEW_MEMO_ARRIVED, source.c_str(), MemoServ->GetQueryCommand().c_str(), mi->memos->size()); } } @@ -229,8 +229,8 @@ public: if (!params.empty() || source.c || source.service != *MemoServ) return; source.Reply(_(" \n" - "Type \002%s%s HELP \037command\037\002 for help on any of the\n" - "above commands."), Config->StrictPrivmsg.c_str(), MemoServ->nick.c_str()); + "Type \002%s HELP \037command\037\002 for help on any of the\n" + "above commands."), MemoServ->GetQueryCommand().c_str()); } }; diff --git a/modules/memoserv/ms_read.cpp b/modules/memoserv/ms_read.cpp index 5e9c8fd83..75d0fef11 100644 --- a/modules/memoserv/ms_read.cpp +++ b/modules/memoserv/ms_read.cpp @@ -91,9 +91,9 @@ public: if (Command::FindCommandFromService("memoserv/del", bi, cmd)) { if (ci) - source.Reply(_("To delete, type: \002%s%s %s %s %d\002"), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str(), ci->name.c_str(), index + 1); + source.Reply(_("To delete, type: \002%s %s %s %d\002"), bi->GetQueryCommand().c_str(), cmd.c_str(), ci->name.c_str(), index + 1); else - source.Reply(_("To delete, type: \002%s%s %s %d\002"), Config->StrictPrivmsg.c_str(), bi->nick.c_str(), cmd.c_str(), index + 1); + source.Reply(_("To delete, type: \002%s %s %d\002"), bi->GetQueryCommand().c_str(), cmd.c_str(), index + 1); } source.Reply("%s", m->text.c_str()); diff --git a/modules/memoserv/ms_set.cpp b/modules/memoserv/ms_set.cpp index e018baa1c..5e03562a6 100644 --- a/modules/memoserv/ms_set.cpp +++ b/modules/memoserv/ms_set.cpp @@ -232,8 +232,8 @@ public: " LIMIT Sets the maximum number of memos you can\n" " receive\n" " \n" - "Type \002%s%s HELP %s \037option\037\002 for more information\n" - "on a specific option."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), source.command.c_str()); + "Type \002%s HELP %s \037option\037\002 for more information\n" + "on a specific option."), source.service->GetQueryCommand().c_str(), source.command.c_str()); } else if (subcommand.equals_ci("NOTIFY")) source.Reply(_("Syntax: \002NOTIFY {ON | LOGON | NEW | MAIL | NOMAIL | OFF}\002\n" |
