diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/botserv/botserv.cpp | 8 | ||||
-rw-r--r-- | modules/botserv/bs_badwords.cpp | 4 | ||||
-rw-r--r-- | modules/botserv/bs_kick.cpp | 8 | ||||
-rw-r--r-- | modules/botserv/bs_set.cpp | 4 | ||||
-rw-r--r-- | modules/chanserv/chanserv.cpp | 6 | ||||
-rw-r--r-- | modules/chanserv/cs_access.cpp | 12 | ||||
-rw-r--r-- | modules/chanserv/cs_drop.cpp | 4 | ||||
-rw-r--r-- | modules/chanserv/cs_register.cpp | 4 | ||||
-rw-r--r-- | modules/chanserv/cs_set.cpp | 4 | ||||
-rw-r--r-- | modules/chanserv/cs_xop.cpp | 8 | ||||
-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 | ||||
-rw-r--r-- | modules/nickserv/nickserv.cpp | 14 | ||||
-rw-r--r-- | modules/nickserv/ns_drop.cpp | 4 | ||||
-rw-r--r-- | modules/nickserv/ns_set.cpp | 8 |
16 files changed, 54 insertions, 50 deletions
diff --git a/modules/botserv/botserv.cpp b/modules/botserv/botserv.cpp index 85db067d2..4d2ddb0ec 100644 --- a/modules/botserv/botserv.cpp +++ b/modules/botserv/botserv.cpp @@ -153,11 +153,11 @@ public: "It has been created for users that can't host or\n" "configure a bot, or for use on networks that don't\n" "allow user bots. Available commands are listed\n" - "below; to use them, type \002%s%s \037command\037\002. For\n" + "below; to use them, type \002%s \037command\037\002. For\n" "more information on a specific command, type\n" - "\002%s%s %s \037command\037\002.\n"), - BotServ->nick.c_str(), Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(), - Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(), source.command.c_str()); + "\002%s %s \037command\037\002.\n"), + BotServ->nick.c_str(), BotServ->GetQueryCommand().c_str(), + BotServ->GetQueryCommand().c_str(), source.command.c_str()); } return EVENT_CONTINUE; diff --git a/modules/botserv/bs_badwords.cpp b/modules/botserv/bs_badwords.cpp index 2396a91c6..95478a0df 100644 --- a/modules/botserv/bs_badwords.cpp +++ b/modules/botserv/bs_badwords.cpp @@ -430,7 +430,7 @@ public: source.Reply(_("Maintains the \002bad words list\002 for a channel. The bad\n" "words list determines which words are to be kicked\n" "when the bad words kicker is enabled. For more information,\n" - "type \002%s%s HELP KICK %s\002.\n" + "type \002%s HELP KICK %s\002.\n" " \n" "The \002ADD\002 command adds the given word to the\n" "bad words list. If SINGLE is specified, a kick will be\n" @@ -440,7 +440,7 @@ public: "will be done if a user says a word that ends with\n" "\037word\037. If you don't specify anything, a kick will\n" "be issued every time \037word\037 is said by a user.\n" - " \n"), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), source.command.c_str()); + " \n"), source.service->GetQueryCommand().c_str(), source.command.c_str()); source.Reply(_("The \002DEL\002 command removes the given word from the\n" "bad words list. If a list of entry numbers is given, those\n" "entries are deleted. (See the example for LIST below.)\n" diff --git a/modules/botserv/bs_kick.cpp b/modules/botserv/bs_kick.cpp index ba2ace0dd..584f34f9d 100644 --- a/modules/botserv/bs_kick.cpp +++ b/modules/botserv/bs_kick.cpp @@ -153,11 +153,11 @@ public: } } - source.Reply(_("Type \002%s%s HELP %s \037option\037\002 for more information\n" + source.Reply(_("Type \002%s HELP %s \037option\037\002 for more information\n" "on a specific option.\n" " \n" "Note: access to this command is controlled by the\n" - "level SET."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), this_name.c_str()); + "level SET."), source.service->GetQueryCommand().c_str(), this_name.c_str()); return true; } @@ -308,12 +308,12 @@ public: "option tells the bot to kick users who say certain words\n" "on the channels.\n" "You can define bad words for your channel using the\n" - "\002BADWORDS\002 command. Type \002%s%s HELP BADWORDS\002 for\n" + "\002BADWORDS\002 command. Type \002%s HELP BADWORDS\002 for\n" "more information.\n" " \n" "\037ttb\037 is the number of times a user can be kicked\n" "before it gets banned. Don't give ttb to disable\n" - "the ban system once activated."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str()); + "the ban system once activated."), source.service->GetQueryCommand().c_str()); return true; } }; diff --git a/modules/botserv/bs_set.cpp b/modules/botserv/bs_set.cpp index dac0e4ed3..64b762d72 100644 --- a/modules/botserv/bs_set.cpp +++ b/modules/botserv/bs_set.cpp @@ -58,8 +58,8 @@ public: } } } - source.Reply(_("Type \002%s%s HELP %s \037option\037\002 for more information on a\n" - "particular option."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), this_name.c_str()); + source.Reply(_("Type \002%s HELP %s \037option\037\002 for more information on a\n" + "particular option."), source.service->GetQueryCommand().c_str(), this_name.c_str()); return true; } diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp index b517770b1..882845074 100644 --- a/modules/chanserv/chanserv.cpp +++ b/modules/chanserv/chanserv.cpp @@ -262,9 +262,9 @@ public: "malicious users from \"taking over\" channels by limiting\n" "who is allowed channel operator privileges. Available\n" "commands are listed below; to use them, type\n" - "\002%s%s \037command\037\002. For more information on a\n" - "specific command, type \002%s%s HELP \037command\037\002.\n"), - ChanServ->nick.c_str(), ChanServ->nick.c_str(), Config->StrictPrivmsg.c_str(), ChanServ->nick.c_str(), Config->StrictPrivmsg.c_str(), ChanServ->nick.c_str()); + "\002%s \037command\037\002. For more information on a\n" + "specific command, type \002%s HELP \037command\037\002.\n"), + ChanServ->nick.c_str(), ChanServ->nick.c_str(), ChanServ->GetQueryCommand().c_str(), ChanServ->GetQueryCommand().c_str()); return EVENT_CONTINUE; } diff --git a/modules/chanserv/cs_access.cpp b/modules/chanserv/cs_access.cpp index b7c39ac6d..5e4f0cffe 100644 --- a/modules/chanserv/cs_access.cpp +++ b/modules/chanserv/cs_access.cpp @@ -630,8 +630,8 @@ public: Anope::string cmd; if (Command::FindCommandFromService("chanserv/levels", bi, cmd)) source.Reply(_("\002User access levels\002 can be seen by using the\n" - "\002%s\002 command; type \002%s%s HELP LEVELS\002 for\n" - "information."), cmd.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str()); + "\002%s\002 command; type \002%s HELP LEVELS\002 for\n" + "information."), cmd.c_str(), bi->GetQueryCommand().c_str()); return true; } }; @@ -665,7 +665,10 @@ class CommandCSLevels final { Privilege *p = PrivilegeManager::FindPrivilege(what); if (p == NULL) - source.Reply(_("Setting \002%s\002 not known. Type \002%s%s HELP LEVELS\002 for a list of valid settings."), what.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str()); + { + source.Reply(_("Setting \002%s\002 not known. Type \002%s HELP LEVELS\002 for a list of valid settings."), + what.c_str(), source.service->GetQueryCommand().c_str()); + } else { bool override = !source.AccessFor(ci).HasPriv("FOUNDER"); @@ -706,7 +709,8 @@ class CommandCSLevels final return; } - source.Reply(_("Setting \002%s\002 not known. Type \002%s%s HELP LEVELS\002 for a list of valid settings."), what.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str()); + source.Reply(_("Setting \002%s\002 not known. Type \002%s HELP LEVELS\002 for a list of valid settings."), + what.c_str(), source.service->GetQueryCommand().c_str()); } static void DoList(CommandSource &source, ChannelInfo *ci) diff --git a/modules/chanserv/cs_drop.cpp b/modules/chanserv/cs_drop.cpp index 91032905f..ea7f07b50 100644 --- a/modules/chanserv/cs_drop.cpp +++ b/modules/chanserv/cs_drop.cpp @@ -58,8 +58,8 @@ public: *code = Anope::Random(15); } - source.Reply(CONFIRM_DROP, ci->name.c_str(), Config->StrictPrivmsg.c_str(), - source.service->nick.c_str(), ci->name.c_str(), code->c_str()); + source.Reply(CONFIRM_DROP, ci->name.c_str(), source.service->GetQueryCommand().c_str(), + ci->name.c_str(), code->c_str()); return; } diff --git a/modules/chanserv/cs_register.cpp b/modules/chanserv/cs_register.cpp index 1610a98ba..1a660efa9 100644 --- a/modules/chanserv/cs_register.cpp +++ b/modules/chanserv/cs_register.cpp @@ -100,9 +100,9 @@ public: Anope::string cmd; if (Command::FindCommandFromService("chanserv/access", bi, cmd)) source.Reply(_(" \n" - "See the \002%s\002 command (\002%s%s HELP ACCESS\002) for\n" + "See the \002%s\002 command (\002%s HELP ACCESS\002) for\n" "information on giving a subset of these privileges to\n" - "other channel users.\n"), cmd.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str()); + "other channel users.\n"), cmd.c_str(), bi->GetQueryCommand().c_str()); source.Reply(_(" \n" "NOTICE: In order to register a channel, you must have\n" "first registered your nickname.")); diff --git a/modules/chanserv/cs_set.cpp b/modules/chanserv/cs_set.cpp index a68aefa3c..93be5c8b4 100644 --- a/modules/chanserv/cs_set.cpp +++ b/modules/chanserv/cs_set.cpp @@ -59,8 +59,8 @@ public: c->OnServHelp(source); } } - source.Reply(_("Type \002%s%s HELP %s \037option\037\002 for more information on a\n" - "particular option."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), this_name.c_str()); + source.Reply(_("Type \002%s HELP %s \037option\037\002 for more information on a\n" + "particular option."), source.service->GetQueryCommand().c_str(), this_name.c_str()); return true; } }; diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp index db8456492..e9a4899d2 100644 --- a/modules/chanserv/cs_xop.cpp +++ b/modules/chanserv/cs_xop.cpp @@ -594,11 +594,11 @@ public: source.Reply(_("Alternative methods of modifying channel access lists are\n" "available.")); if (!access_cmd.empty()) - source.Reply(_("See \002%s%s HELP %s\002 for more information\n" - "about the access list."), Config->StrictPrivmsg.c_str(), access_bi->nick.c_str(), access_cmd.c_str()); + source.Reply(_("See \002%s HELP %s\002 for more information\n" + "about the access list."), access_bi->GetQueryCommand().c_str(), access_cmd.c_str()); if (!flags_cmd.empty()) - source.Reply(_("See \002%s%s HELP %s\002 for more information\n" - "about the flags system."), Config->StrictPrivmsg.c_str(), flags_bi->nick.c_str(), flags_cmd.c_str()); + source.Reply(_("See \002%s HELP %s\002 for more information\n" + "about the flags system."), flags_bi->GetQueryCommand().c_str(), flags_cmd.c_str()); } return true; } 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" diff --git a/modules/nickserv/nickserv.cpp b/modules/nickserv/nickserv.cpp index 1718af690..d38119d69 100644 --- a/modules/nickserv/nickserv.cpp +++ b/modules/nickserv/nickserv.cpp @@ -195,7 +195,7 @@ public: if (!na->nc->HasExt("KILL_IMMED")) { - u->SendMessage(NickServ, NICK_IS_SECURE, Config->StrictPrivmsg.c_str(), NickServ->nick.c_str()); + u->SendMessage(NickServ, NICK_IS_SECURE, NickServ->GetQueryCommand().c_str()); } if (na->nc->HasExt("KILLPROTECT")) { @@ -362,8 +362,8 @@ public: u->SendMessage(NickServ, _("You must now supply an email for your nick.\n" "This email will allow you to retrieve your password in\n" "case you forget it.")); - u->SendMessage(NickServ, _("Type \002%s%s SET EMAIL \037email\037\002 in order to set your email."), - Config->StrictPrivmsg.c_str(), NickServ->nick.c_str()); + u->SendMessage(NickServ, _("Type \002%s SET EMAIL \037email\037\002 in order to set your email."), + NickServ->GetQueryCommand().c_str()); } for (auto *c : collides) @@ -465,15 +465,15 @@ public: source.Reply(_("\002%s\002 allows you to register a nickname and\n" "prevent others from using it. The following\n" "commands allow for registration and maintenance of\n" - "nicknames; to use them, type \002%s%s \037command\037\002.\n" + "nicknames; to use them, type \002%s \037command\037\002.\n" "For more information on a specific command, type\n" - "\002%s%s %s \037command\037\002.\n"), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str()); + "\002%s %s \037command\037\002.\n"), NickServ->nick.c_str(), NickServ->GetQueryCommand().c_str(), NickServ->GetQueryCommand().c_str(), source.command.c_str()); else source.Reply(_("\002%s\002 allows you to register an account.\n" "The following commands allow for registration and maintenance of\n" - "accounts; to use them, type \002%s%s \037command\037\002.\n" + "accounts; to use them, type \002%s \037command\037\002.\n" "For more information on a specific command, type\n" - "\002%s%s %s \037command\037\002.\n"), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), Config->StrictPrivmsg.c_str(), NickServ->nick.c_str(), source.command.c_str()); + "\002%s %s \037command\037\002.\n"), NickServ->nick.c_str(), NickServ->GetQueryCommand().c_str(), NickServ->GetQueryCommand().c_str(), source.command.c_str()); return EVENT_CONTINUE; } diff --git a/modules/nickserv/ns_drop.cpp b/modules/nickserv/ns_drop.cpp index 6042bf326..5a31d74f9 100644 --- a/modules/nickserv/ns_drop.cpp +++ b/modules/nickserv/ns_drop.cpp @@ -72,8 +72,8 @@ public: *code = Anope::Random(15); } - source.Reply(CONFIRM_DROP, na->nick.c_str(), Config->StrictPrivmsg.c_str(), - source.service->nick.c_str(), na->nick.c_str(), code->c_str()); + source.Reply(CONFIRM_DROP, na->nick.c_str(), source.service->GetQueryCommand().c_str(), + na->nick.c_str(), code->c_str()); return; } diff --git a/modules/nickserv/ns_set.cpp b/modules/nickserv/ns_set.cpp index 25c4e5a0d..f8391a519 100644 --- a/modules/nickserv/ns_set.cpp +++ b/modules/nickserv/ns_set.cpp @@ -57,8 +57,8 @@ public: } } - source.Reply(_("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(), this_name.c_str()); + source.Reply(_("Type \002%s HELP %s \037option\037\002 for more information\n" + "on a specific option."), source.service->GetQueryCommand().c_str(), this_name.c_str()); return true; } @@ -100,9 +100,9 @@ public: } } - source.Reply(_("Type \002%s%s HELP %s \037option\037\002 for more information\n" + source.Reply(_("Type \002%s HELP %s \037option\037\002 for more information\n" "on a specific option. The options will be set on the given\n" - "\037nickname\037."), Config->StrictPrivmsg.c_str(), source.service->nick.c_str(), this_name.c_str()); + "\037nickname\037."), source.service->GetQueryCommand().c_str(), this_name.c_str()); return true; } }; |