add option to change chat command character

This commit is contained in:
Martin Michelsen
2026-01-04 00:32:46 -08:00
parent 4aa206bd4b
commit a469b4355e
6 changed files with 24 additions and 5 deletions
+3 -3
View File
@@ -3183,9 +3183,9 @@ struct SplitCommand {
asio::awaitable<void> on_chat_command(std::shared_ptr<Client> c, const std::string& text, bool check_permissions) {
SplitCommand cmd(text);
// This function is only called by on_06 if it looks like a chat command (starts with $, or @ on 11/2000), so we just
// normalize all commands to $ here
if (!cmd.name.empty() && cmd.name[0] == '@') {
// This function is only called by on_06 if it looks like a chat command (starts with $, or @ on 11/2000, or
// s->chat_command_sentinel if overridden), so we just normalize all commands to $ here
if (!cmd.name.empty()) {
cmd.name[0] = '$';
}