Add /msg command

This commit is contained in:
Simon Ser
2020-06-10 18:46:19 +02:00
parent 73723f6696
commit e7a0274172

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 + "'");
}