Add /msg command
This commit is contained in:
parent
73723f6696
commit
e7a0274172
1 changed files with 5 additions and 0 deletions
|
@ -304,6 +304,11 @@ function executeCommand(s) {
|
||||||
var channel = activeBuffer.name;
|
var channel = activeBuffer.name;
|
||||||
sendMessage({ command: "PART", params: [channel] });
|
sendMessage({ command: "PART", params: [channel] });
|
||||||
break;
|
break;
|
||||||
|
case "msg":
|
||||||
|
var target = args[0];
|
||||||
|
var text = args.slice(1).join(" ");
|
||||||
|
sendMessage({ command: "PRIVMSG", params: [target, text] });
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.error("Unknwon command '" + cmd + "'");
|
console.error("Unknwon command '" + cmd + "'");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue