Show error on misused /beam

This commit is contained in:
Enrico Ros
2024-03-15 02:48:45 -07:00
parent db1620dd56
commit 46bfc22869
+2
View File
@@ -228,6 +228,8 @@ export function AppChat() {
return;
case 'mode-beam':
if (chatCommand.isError)
return cHandler.messagesReplace(history);
// remove '/beam ', as we want to be a user chat message
Object.assign(lastMessage, { text: chatCommand.params || '' });
cHandler.messagesReplace(history);