rewrite chat command system

This commit is contained in:
Martin Michelsen
2025-01-12 16:27:02 -08:00
parent b028532db3
commit 9033fb6a5d
10 changed files with 2615 additions and 2622 deletions
+2 -2
View File
@@ -908,7 +908,7 @@ ShellCommand c_cc(
}
if (ses.get()) {
on_chat_command(ses, args.args);
on_chat_command(ses, args.args, false);
} else {
shared_ptr<Client> c;
if (args.session_name.empty()) {
@@ -925,7 +925,7 @@ ShellCommand c_cc(
}
if (c) {
on_chat_command(c, args.args);
on_chat_command(c, args.args, false);
} else {
throw runtime_error("no client available");
}