mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
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;
|
||||
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 + "'");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue