summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-16 00:04:30 +0100
committerSadie Powell <sadie@witchery.services>2025-04-16 00:04:30 +0100
commitce362854a39c35249f8d2c7bcf27e3d5f9aa9980 (patch)
tree6d4012d9579c2d56055d621768122cf5f3b658ba /modules
parenta883b616a1360ba74254661cbd39280404d1753a (diff)
Update as many messages as possible for automatic line wrapping.
Diffstat (limited to 'modules')
-rw-r--r--modules/botserv/botserv.cpp64
-rw-r--r--modules/botserv/bs_assign.cpp30
-rw-r--r--modules/botserv/bs_badwords.cpp57
-rw-r--r--modules/botserv/bs_bot.cpp36
-rw-r--r--modules/botserv/bs_botlist.cpp28
-rw-r--r--modules/botserv/bs_control.cpp6
-rw-r--r--modules/botserv/bs_info.cpp12
-rw-r--r--modules/botserv/bs_kick.cpp281
-rw-r--r--modules/botserv/bs_set.cpp31
-rw-r--r--modules/chanserv/chanserv.cpp47
-rw-r--r--modules/chanserv/cs_access.cpp141
-rw-r--r--modules/chanserv/cs_akick.cpp70
-rw-r--r--modules/chanserv/cs_ban.cpp14
-rw-r--r--modules/chanserv/cs_clone.cpp10
-rw-r--r--modules/chanserv/cs_drop.cpp24
-rw-r--r--modules/chanserv/cs_enforce.cpp28
-rw-r--r--modules/chanserv/cs_entrymsg.cpp42
-rw-r--r--modules/chanserv/cs_flags.cpp39
-rw-r--r--modules/chanserv/cs_info.cpp14
-rw-r--r--modules/chanserv/cs_invite.cpp13
-rw-r--r--modules/chanserv/cs_kick.cpp10
-rw-r--r--modules/chanserv/cs_list.cpp73
-rw-r--r--modules/chanserv/cs_log.cpp42
-rw-r--r--modules/chanserv/cs_mode.cpp66
-rw-r--r--modules/chanserv/cs_register.cpp50
-rw-r--r--modules/chanserv/cs_seen.cpp24
-rw-r--r--modules/chanserv/cs_set.cpp200
-rw-r--r--modules/chanserv/cs_status.cpp12
-rw-r--r--modules/chanserv/cs_suspend.cpp24
-rw-r--r--modules/chanserv/cs_sync.cpp6
-rw-r--r--modules/chanserv/cs_topic.cpp32
-rw-r--r--modules/chanserv/cs_unban.cpp17
-rw-r--r--modules/chanserv/cs_updown.cpp16
-rw-r--r--modules/chanserv/cs_xop.cpp75
-rw-r--r--modules/fantasy.cpp22
-rw-r--r--modules/global/gl_global.cpp13
-rw-r--r--modules/global/gl_queue.cpp20
-rw-r--r--modules/global/gl_server.cpp13
-rw-r--r--modules/greet.cpp34
-rw-r--r--modules/help.cpp2
-rw-r--r--modules/hostserv/hs_del.cpp6
-rw-r--r--modules/hostserv/hs_group.cpp8
-rw-r--r--modules/hostserv/hs_list.cpp16
-rw-r--r--modules/hostserv/hs_off.cpp8
-rw-r--r--modules/hostserv/hs_on.cpp8
-rw-r--r--modules/hostserv/hs_request.cpp8
-rw-r--r--modules/hostserv/hs_set.cpp25
-rw-r--r--modules/memoserv/memoserv.cpp23
-rw-r--r--modules/memoserv/ms_cancel.cpp6
-rw-r--r--modules/memoserv/ms_check.cpp6
-rw-r--r--modules/memoserv/ms_del.cpp31
-rw-r--r--modules/memoserv/ms_ignore.cpp10
-rw-r--r--modules/memoserv/ms_info.cpp22
-rw-r--r--modules/memoserv/ms_list.cpp14
-rw-r--r--modules/memoserv/ms_read.cpp24
-rw-r--r--modules/memoserv/ms_rsend.cpp16
-rw-r--r--modules/memoserv/ms_send.cpp10
-rw-r--r--modules/memoserv/ms_set.cpp118
-rw-r--r--modules/nickserv/nickserv.cpp75
-rw-r--r--modules/nickserv/ns_ajoin.cpp10
-rw-r--r--modules/nickserv/ns_alist.cpp12
-rw-r--r--modules/nickserv/ns_cert.cpp38
-rw-r--r--modules/nickserv/ns_drop.cpp18
-rw-r--r--modules/nickserv/ns_group.cpp100
-rw-r--r--modules/nickserv/ns_identify.cpp13
-rw-r--r--modules/nickserv/ns_info.cpp47
-rw-r--r--modules/nickserv/ns_list.cpp95
-rw-r--r--modules/nickserv/ns_logout.cpp18
-rw-r--r--modules/nickserv/ns_recover.cpp26
-rw-r--r--modules/nickserv/ns_register.cpp86
-rw-r--r--modules/nickserv/ns_resetpass.cpp8
-rw-r--r--modules/nickserv/ns_set.cpp64
-rw-r--r--modules/nickserv/ns_set_keepmodes.cpp16
-rw-r--r--modules/nickserv/ns_set_language.cpp20
-rw-r--r--modules/nickserv/ns_set_message.cpp17
-rw-r--r--modules/nickserv/ns_set_protect.cpp22
-rw-r--r--modules/nickserv/ns_suspend.cpp10
-rw-r--r--modules/nickserv/ns_update.cpp8
-rw-r--r--modules/operserv/os_akill.cpp90
-rw-r--r--modules/operserv/os_chankill.cpp8
-rw-r--r--modules/operserv/os_config.cpp16
-rw-r--r--modules/operserv/os_defcon.cpp8
-rw-r--r--modules/operserv/os_dns.cpp30
-rw-r--r--modules/operserv/os_forbid.cpp13
-rw-r--r--modules/operserv/os_ignore.cpp31
-rw-r--r--modules/operserv/os_info.cpp8
-rw-r--r--modules/operserv/os_jupe.cpp18
-rw-r--r--modules/operserv/os_kick.cpp15
-rw-r--r--modules/operserv/os_kill.cpp8
-rw-r--r--modules/operserv/os_list.cpp46
-rw-r--r--modules/operserv/os_login.cpp18
-rw-r--r--modules/operserv/os_logsearch.cpp24
-rw-r--r--modules/operserv/os_mode.cpp16
-rw-r--r--modules/operserv/os_module.cpp3
-rw-r--r--modules/operserv/os_news.cpp36
-rw-r--r--modules/operserv/os_noop.cpp10
-rw-r--r--modules/operserv/os_oper.cpp8
-rw-r--r--modules/operserv/os_reload.cpp10
-rw-r--r--modules/operserv/os_session.cpp92
-rw-r--r--modules/operserv/os_set.cpp112
-rw-r--r--modules/operserv/os_shutdown.cpp16
-rw-r--r--modules/operserv/os_stats.cpp40
-rw-r--r--modules/operserv/os_sxline.cpp180
-rw-r--r--modules/operserv/os_update.cpp3
104 files changed, 2132 insertions, 1527 deletions
diff --git a/modules/botserv/botserv.cpp b/modules/botserv/botserv.cpp
index cd9d7f7ae..99e2c9134 100644
--- a/modules/botserv/botserv.cpp
+++ b/modules/botserv/botserv.cpp
@@ -135,29 +135,41 @@ public:
if (source.c)
{
- source.Reply(_("\002%s\002 allows you to execute \"fantasy\" commands in the channel.\n"
- "Fantasy commands are commands that can be executed from messaging a\n"
- "channel, and provide a more convenient way to execute commands. Commands that\n"
- "require a channel as a parameter will automatically have that parameter\n"
- "given.\n"), source.service->nick.c_str());
+ source.Reply(_(
+ "\002%s\002 allows you to execute \"fantasy\" commands in the channel. "
+ "Fantasy commands are commands that can be executed from messaging a "
+ "channel, and provide a more convenient way to execute commands. Commands that "
+ "require a channel as a parameter will automatically have that parameter "
+ "given."
+ ),
+ source.service->nick.c_str());
+
const Anope::string &fantasycharacters = Config->GetModule("fantasy").Get<const Anope::string>("fantasycharacter", "!");
if (!fantasycharacters.empty())
- source.Reply(_(" \n"
- "Fantasy commands may be prefixed with one of the following characters: %s\n"), fantasycharacters.c_str());
- source.Reply(_(" \n"
- "Available commands are:"));
+ {
+ source.Reply(" ");
+ source.Reply(_("Fantasy commands may be prefixed with one of the following characters: %s"),
+ fantasycharacters.c_str());
+ }
+ source.Reply(" ");
+ source.Reply(_("Available commands are:"));
}
else if (*source.service == BotServ)
{
- source.Reply(_("\002%s\002 allows you to have a bot on your own channel.\n"
- "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 \037command\037\002. For\n"
- "more information on a specific command, type\n"
- "\002%s \037command\037\002.\n"),
- BotServ->nick.c_str(), BotServ->GetQueryCommand().c_str(),
+ source.Reply(_(
+ "\002%s\002 allows you to have a bot on your own channel. "
+ "It has been created for users that can't host or "
+ "configure a bot, or for use on networks that don't "
+ "allow user bots. Available commands are listed "
+ "below; to use them, type \002%s\032\037command\037\002. For "
+ "more information on a specific command, type "
+ "\002%s\032\037command\037\002."
+ ),
+ BotServ->nick.c_str(),
+ BotServ->GetQueryCommand().c_str(),
BotServ->GetQueryCommand({}, source.command).c_str());
+
+ source.Reply(" ");
}
return EVENT_CONTINUE;
@@ -168,14 +180,20 @@ public:
if (!params.empty() || source.c || source.service != *BotServ)
return;
- source.Reply(_(" \n"
- "Bot will join a channel whenever there is at least\n"
- "\002%d\002 user(s) on it."), Config->GetModule(this).Get<unsigned>("minusers"));
+ source.Reply(" ");
+ source.Reply(_("Bot will join a channel whenever there is at least \002%d\002 user(s) on it."),
+ Config->GetModule(this).Get<unsigned>("minusers"));
+
const Anope::string &fantasycharacters = Config->GetModule("fantasy").Get<const Anope::string>("fantasycharacter", "!");
if (!fantasycharacters.empty())
- source.Reply(_("Additionally, if fantasy is enabled fantasy commands\n"
- "can be executed by prefixing the command name with\n"
- "one of the following characters: %s"), fantasycharacters.c_str());
+ {
+ source.Reply(_(
+ "Additionally, if fantasy is enabled fantasy commands "
+ "can be executed by prefixing the command name with "
+ "one of the following characters: %s"
+ ),
+ fantasycharacters.c_str());
+ }
}
EventReturn OnChannelModeSet(Channel *c, MessageSource &source, ChannelMode *mode, const Anope::string &param) override
diff --git a/modules/botserv/bs_assign.cpp b/modules/botserv/bs_assign.cpp
index f80e9c17e..292c89459 100644
--- a/modules/botserv/bs_assign.cpp
+++ b/modules/botserv/bs_assign.cpp
@@ -76,9 +76,11 @@ public:
{
this->SendSyntax(source);
source.Reply(" ");
- source.Reply(_("Assigns the specified bot to a channel. You\n"
- "can then configure the bot for the channel so it fits\n"
- "your needs."));
+ source.Reply(_(
+ "Assigns the specified bot to a channel. You "
+ "can then configure the bot for the channel so it fits "
+ "your needs."
+ ));
return true;
}
};
@@ -138,11 +140,13 @@ public:
{
this->SendSyntax(source);
source.Reply(" ");
- source.Reply(_("Unassigns a bot from a channel. When you use this command,\n"
- "the bot won't join the channel anymore. However, bot\n"
- "configuration for the channel is kept, so you will always\n"
- "be able to reassign a bot later without having to reconfigure\n"
- "it entirely."));
+ source.Reply(_(
+ "Unassigns a bot from a channel. When you use this command, "
+ "the bot won't join the channel anymore. However, bot "
+ "configuration for the channel is kept, so you will always "
+ "be able to reassign a bot later without having to reconfigure "
+ "it entirely."
+ ));
return true;
}
};
@@ -197,10 +201,12 @@ public:
bool OnHelp(CommandSource &source, const Anope::string &) override
{
this->SendSyntax(source);
- source.Reply(_(" \n"
- "This option makes a channel unassignable. If a bot\n"
- "is already assigned to the channel, it is unassigned\n"
- "automatically when you enable it."));
+ source.Reply(" ");
+ source.Reply(_(
+ "This option makes a channel unassignable. If a bot "
+ "is already assigned to the channel, it is unassigned "
+ "automatically when you enable it."
+ ));
return true;
}
};
diff --git a/modules/botserv/bs_badwords.cpp b/modules/botserv/bs_badwords.cpp
index 789689699..d50ca0f95 100644
--- a/modules/botserv/bs_badwords.cpp
+++ b/modules/botserv/bs_badwords.cpp
@@ -435,35 +435,38 @@ public:
{
this->SendSyntax(source);
source.Reply(" ");
- 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 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"
- "done only if a user says the entire word. If START is\n"
- "specified, a kick will be done if a user says a word\n"
- "that starts with \037word\037. If END is specified, a kick\n"
- "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"), source.service->GetQueryCommand("generic/help").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"
- " \n"
- "The \002LIST\002 command displays the bad words list. If\n"
- "a wildcard mask is given, only those entries matching the\n"
- "mask are displayed. If a list of entry numbers is given,\n"
+ source.Reply(_(
+ "Maintains the \002bad words list\002 for a channel. The bad "
+ "words list determines which words are to be kicked "
+ "when the bad words kicker is enabled. For more information, "
+ "type \002%s\032KICK\032%s\002."
+ "\n\n"
+ "The \002ADD\002 command adds the given word to the "
+ "bad words list. If SINGLE is specified, a kick will be "
+ "done only if a user says the entire word. If START is "
+ "specified, a kick will be done if a user says a word "
+ "that starts with \037word\037. If END is specified, a kick "
+ "will be done if a user says a word that ends with "
+ "\037word\037. If you don't specify anything, a kick will "
+ "be issued every time \037word\037 is said by a user."
+ "\n\n"
+ "The \002DEL\002 command removes the given word from the "
+ "bad words list. If a list of entry numbers is given, those "
+ "entries are deleted. (See the example for LIST below.)"
+ "\n\n"
+ "The \002LIST\002 command displays the bad words list. If "
+ "a wildcard mask is given, only those entries matching the "
+ "mask are displayed. If a list of entry numbers is given, "
"only those entries are shown; for example:\n"
- " \002#channel LIST 2-5,7-9\002\n"
+ " \002#channel\032LIST\0322-5,7-9\002\n"
" Lists bad words entries numbered 2 through 5 and\n"
- " 7 through 9.\n"
- " \n"
- "The \002CLEAR\002 command clears all entries from the\n"
- "bad words list."));
+ " 7 through 9."
+ "\n\n"
+ "The \002CLEAR\002 command clears all entries from the "
+ "bad words list."
+ ),
+ source.service->GetQueryCommand("generic/help").c_str(),
+ source.command.c_str());
return true;
}
};
diff --git a/modules/botserv/bs_bot.cpp b/modules/botserv/bs_bot.cpp
index