Add /msg command

This commit is contained in:
Simon Ser 2020-06-10 18:46:19 +02:00
parent 73723f6696
commit e7a0274172
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -304,6 +304,11 @@ function executeCommand(s) {
var channel = activeBuffer.name;
sendMessage({ command: "PART", params: [channel] });
break;
case "msg":
var target = args[0];
var text = args.slice(1).join(" ");
sendMessage({ command: "PRIVMSG", params: [target, text] });
break;
default:
console.error("Unknwon command '" + cmd + "'");
}