summaryrefslogtreecommitdiff
path: root/modules/chanserv
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-22 17:36:26 +0100
committerSadie Powell <sadie@witchery.services>2025-04-22 18:16:31 +0100
commitf3629598347763c984d03ee70235133c45dd9908 (patch)
tree9aa5190273a40005a4c730c06258b1ee3ae703c7 /modules/chanserv
parentf5a85c69d225edaed4e11eb4c2b27d66ebc5195e (diff)
Fix splitting in the middle of some command names.
Diffstat (limited to 'modules/chanserv')
-rw-r--r--modules/chanserv/cs_flags.cpp2
-rw-r--r--modules/chanserv/cs_log.cpp4
-rw-r--r--modules/chanserv/cs_mode.cpp6
-rw-r--r--modules/chanserv/cs_seen.cpp2
-rw-r--r--modules/chanserv/cs_topic.cpp2
-rw-r--r--modules/chanserv/cs_xop.cpp22
6 files changed, 19 insertions, 19 deletions
diff --git a/modules/chanserv/cs_flags.cpp b/modules/chanserv/cs_flags.cpp
index e0de2c81e..080e8498c 100644
--- a/modules/chanserv/cs_flags.cpp
+++ b/modules/chanserv/cs_flags.cpp
@@ -464,7 +464,7 @@ public:
"\n\n"
"The available flags are:"
),
- source.command.c_str());
+ source.command.nobreak().c_str());
typedef std::multimap<char, Anope::string, ci::less> reverse_map;
reverse_map reverse;
diff --git a/modules/chanserv/cs_log.cpp b/modules/chanserv/cs_log.cpp
index f50cbf517..b33a1bf44 100644
--- a/modules/chanserv/cs_log.cpp
+++ b/modules/chanserv/cs_log.cpp
@@ -292,8 +292,8 @@ public:
" Would message any channel operators whenever someone used the "
"ACCESS command on ChanServ on the channel."
),
- source.command.upper().c_str(),
- source.command.upper().c_str());
+ source.command.nobreak().c_str(),
+ source.command.nobreak().c_str());
return true;
}
diff --git a/modules/chanserv/cs_mode.cpp b/modules/chanserv/cs_mode.cpp
index eebc830c6..f7f417d28 100644
--- a/modules/chanserv/cs_mode.cpp
+++ b/modules/chanserv/cs_mode.cpp
@@ -800,9 +800,9 @@ public:
"any mode name. Examples include bans, excepts, inviteoverrides, ops, halfops, and voices. If \037what\037 "
"is not given then all basic modes are removed."
),
- source.command.upper().c_str(),
- source.command.upper().c_str(),
- source.command.upper().c_str());
+ source.command.nobreak().c_str(),
+ source.command.nobreak().c_str(),
+ source.command.nobreak().c_str());
return true;
}
};
diff --git a/modules/chanserv/cs_seen.cpp b/modules/chanserv/cs_seen.cpp
index 31c5e6b88..ec90206e1 100644
--- a/modules/chanserv/cs_seen.cpp
+++ b/modules/chanserv/cs_seen.cpp
@@ -191,7 +191,7 @@ public:
" %s\032CLEAR\03230m\n"
" Will remove all entries that were added within the last 30 minutes."
),
- source.command.c_str());
+ source.command.nobreak().c_str());
return true;
}
};
diff --git a/modules/chanserv/cs_topic.cpp b/modules/chanserv/cs_topic.cpp
index e1aa98e99..fd5d61b2d 100644
--- a/modules/chanserv/cs_topic.cpp
+++ b/modules/chanserv/cs_topic.cpp
@@ -75,7 +75,7 @@ public:
"last user leaves the channel, and will be restored the "
"next time the channel is created."
),
- source.command.c_str(),
+ source.command.nobreak().c_str(),
source.service->nick.c_str());
return true;
}
diff --git a/modules/chanserv/cs_xop.cpp b/modules/chanserv/cs_xop.cpp
index ffdf46488..feddbacd7 100644
--- a/modules/chanserv/cs_xop.cpp
+++ b/modules/chanserv/cs_xop.cpp
@@ -234,7 +234,7 @@ private:
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to add " << mask;
FOREACH_MOD(OnAccessAdd, (ci, source, acc));
- source.Reply(_("\002%s\002 added to %s %s list."), acc->Mask().c_str(), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("\002%s\002 added to %s %s list."), acc->Mask().c_str(), ci->name.c_str(), source.command.nobreak().c_str());
}
void DoDel(CommandSource &source, ChannelInfo *ci, const std::vector<Anope::string> &params)
@@ -256,7 +256,7 @@ private:
if (!ci->GetAccessCount())
{
- source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.nobreak().c_str());
return;
}
@@ -315,11 +315,11 @@ private:
~XOPDelCallback() override
{
if (!deleted)
- source.Reply(_("No matching entries on %s %s list."), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("No matching entries on %s %s list."), ci->name.c_str(), source.command.nobreak().c_str());
else
{
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, c, ci) << "to delete " << nicks;
- source.Reply(deleted, N_("Deleted %d entry from %s %s list.", "Deleted %d entries from %s %s list."), deleted, ci->name.c_str(), source.command.c_str());
+ source.Reply(deleted, N_("Deleted %d entry from %s %s list.", "Deleted %d entries from %s %s list."), deleted, ci->name.c_str(), source.command.nobreak().c_str());
}
}
@@ -360,7 +360,7 @@ private:
{
Log(override ? LOG_OVERRIDE : LOG_COMMAND, source, this, ci) << "to delete " << a->Mask();
- source.Reply(_("\002%s\002 deleted from %s %s list."), a->Mask().c_str(), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("\002%s\002 deleted from %s %s list."), a->Mask().c_str(), ci->name.c_str(), source.command.nobreak().c_str());
ci->EraseAccess(i);
FOREACH_MOD(OnAccessDel, (ci, source, a));
@@ -370,7 +370,7 @@ private:
}
}
- source.Reply(_("\002%s\002 not found on %s %s list."), mask.c_str(), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("\002%s\002 not found on %s %s list."), mask.c_str(), ci->name.c_str(), source.command.nobreak().c_str());
}
}
@@ -389,7 +389,7 @@ private:
if (!ci->GetAccessCount())
{
- source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.nobreak().c_str());
return;
}
@@ -454,7 +454,7 @@ private:
std::vector<Anope::string> replies;
list.Process(replies);
- source.Reply(_("%s list for %s"), source.command.c_str(), ci->name.c_str());
+ source.Reply(_("%s list for %s"), source.command.nobreak().c_str(), ci->name.c_str());
for (const auto &reply : replies)
source.Reply(reply);
}
@@ -470,7 +470,7 @@ private:
if (!ci->GetAccessCount())
{
- source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("%s %s list is empty."), ci->name.c_str(), source.command.nobreak().c_str());
return;
}
@@ -495,7 +495,7 @@ private:
FOREACH_MOD(OnAccessClear, (ci, source));
- source.Reply(_("Channel %s %s list has been cleared."), ci->name.c_str(), source.command.c_str());
+ source.Reply(_("Channel %s %s list has been cleared."), ci->name.c_str(), source.command.nobreak().c_str());
}
public:
@@ -509,7 +509,7 @@ public:
const Anope::string GetDesc(CommandSource &source) const override
{
- return Anope::printf(Language::Translate(source.GetAccount(), _("Modify the list of %s users")), source.command.upper().c_str());
+ return Anope::printf(Language::Translate(source.GetAccount(), _("Modify the list of %s users")), source.command.nobreak().c_str());
}
void Execute(CommandSource &source, const std::vector<Anope::string> &params) override