'/join' now accept passwords

This commit is contained in:
Mattias Erming 2014-06-13 00:35:39 +02:00
parent 03d8510486
commit 9213774ad4
1 changed files with 9 additions and 1 deletions

View File

@ -227,7 +227,15 @@ function input(data) {
case "join":
if (client && args[1]) {
client.join(args.slice(1));
if (!args[2] || args[2].charAt(0) == "#") {
client.join(args.slice(1));
} else {
console.log(args[1], args[2]);
client.join(
args[1],
args[2] // Password
);
}
}
break;