mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Add /quit command
This commit is contained in:
parent
cb04f42fe7
commit
21584d5c3d
1 changed files with 3 additions and 0 deletions
|
@ -269,6 +269,9 @@ function executeCommand(s) {
|
||||||
var cmd = parts[0].toLowerCase().slice(1);
|
var cmd = parts[0].toLowerCase().slice(1);
|
||||||
var args = parts.slice(1);
|
var args = parts.slice(1);
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
|
case "quit":
|
||||||
|
disconnect();
|
||||||
|
break;
|
||||||
case "join":
|
case "join":
|
||||||
var channel = args[0];
|
var channel = args[0];
|
||||||
var msg = { command: "JOIN", params: [channel] };
|
var msg = { command: "JOIN", params: [channel] };
|
||||||
|
|
Loading…
Reference in a new issue