diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-03-15 12:09:58 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-03-15 12:09:58 +0000 |
| commit | ad86535024e3a85bd161b711aabe93997a5705ad (patch) | |
| tree | 71aa76167c8b8abee24dba92554a4b9653b9444e /modules/chanserv | |
| parent | 628f4d2a7e4d072439ad8f30cf6fb702e14f134b (diff) | |
Consistently use READ_ONLY_MODE everywhere.
Diffstat (limited to 'modules/chanserv')
| -rw-r--r-- | modules/chanserv/cs_access.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_akick.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_drop.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_flags.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_register.cpp | 2 | ||||
| -rw-r--r-- | modules/chanserv/cs_xop.cpp | 6 |
6 files changed, 8 insertions, 8 deletions
diff --git a/modules/chanserv/cs_access.cpp b/modules/chanserv/cs_access.cpp index f86d9f5bc..7f10ae3e0 100644 --- a/modules/chanserv/cs_access.cpp +++ b/modules/chanserv/cs_access.cpp @@ -560,7 +560,7 @@ public: else if (!has_access) source.Reply(ACCESS_DENIED); else if (Anope::ReadOnly && !is_list) - source.Reply(_("Sorry, channel access list modification is temporarily disabled.")); + source.Reply(READ_ONLY_MODE); else if (cmd.equals_ci("ADD")) this->DoAdd(source, ci, params); else if (cmd.equals_ci("DEL")) diff --git a/modules/chanserv/cs_akick.cpp b/modules/chanserv/cs_akick.cpp index 35052e63d..57cd1c0b3 100644 --- a/modules/chanserv/cs_akick.cpp +++ b/modules/chanserv/cs_akick.cpp @@ -466,7 +466,7 @@ public: else if (!has_access) source.Reply(ACCESS_DENIED); else if (!cmd.equals_ci("LIST") && !cmd.equals_ci("VIEW") && !cmd.equals_ci("ENFORCE") && Anope::ReadOnly) - source.Reply(_("Sorry, channel autokick list modification is temporarily disabled.")); + source.Reply(READ_ONLY_MODE); else if (cmd.equals_ci("ADD")) this->DoAdd(source, ci, params); else if (cmd.equals_ci("DEL")) diff --git a/modules/chanserv/cs_drop.cpp b/modules/chanserv/cs_drop.cpp index 90a12fb1c..89e996970 100644 --- a/modules/chanserv/cs_drop.cpp +++ b/modules/chanserv/cs_drop.cpp @@ -32,7 +32,7 @@ public: if (Anope::ReadOnly && !source.HasPriv("chanserv/administration")) { - source.Reply(_("Sorry, channel de-registration is temporarily disabled.")); // XXX: READ_ONLY_MODE? + source.Reply(READ_ONLY_MODE); return; } diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp index 7404aef57..cdba434dc 100644 --- a/modules/chanserv/cs_flags.cpp +++ b/modules/chanserv/cs_flags.cpp @@ -411,7 +411,7 @@ public: if (!has_access) source.Reply(ACCESS_DENIED); else if (Anope::ReadOnly && !is_list) - source.Reply(_("Sorry, channel access list modification is temporarily disabled.")); + source.Reply(READ_ONLY_MODE); else if (is_list) this->DoList(source, ci, params); else if (cmd.equals_ci("CLEAR")) diff --git a/modules/chanserv/cs_register.cpp b/modules/chanserv/cs_register.cpp index 402ae1296..1610a98ba 100644 --- a/modules/chanserv/cs_register.cpp +++ b/modules/chanserv/cs_register.cpp @@ -33,7 +33,7 @@ public: ChannelInfo *ci = ChannelInfo::Find(params[0]); if (Anope::ReadOnly) - source.Reply(_("Sorry, channel registration is temporarily disabled.")); + source.Reply(READ_ONLY_MODE); else if (nc->HasExt("UNCONFIRMED")) source.Reply(_("You must confirm your account before you can register a channel.")); else if (chan[0] == '&') diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp index 0ec8e8d25..b1791e5fe 100644 --- a/modules/chanserv/cs_xop.cpp +++ b/modules/chanserv/cs_xop.cpp @@ -116,7 +116,7 @@ private: if (Anope::ReadOnly) { - source.Reply(_("Sorry, channel %s list modification is temporarily disabled."), source.command.c_str()); + source.Reply(READ_ONLY_MODE, source.command.c_str()); return; } @@ -246,7 +246,7 @@ private: if (Anope::ReadOnly) { - source.Reply(_("Sorry, channel %s list modification is temporarily disabled."), source.command.c_str()); + source.Reply(READ_ONLY_MODE, source.command.c_str()); return; } @@ -464,7 +464,7 @@ private: { if (Anope::ReadOnly) { - source.Reply(_("Sorry, channel %s list modification is temporarily disabled."), source.command.c_str()); + source.Reply(READ_ONLY_MODE, source.command.c_str()); return; } |
