commands: add password param to /join

This commit is contained in:
delthas authored and Simon Ser committed 2022-02-02 20:45:18 +01:00
1 parent 9f93e200ed
commit fab42ba2ee
3 files changed
+14 -6

No files matched your search

+6 -2
View File
@@ -802,10 +802,14 @@ export default class Client extends EventTarget {
});
}
join(channel) {
join(channel, password) {
let params = [channel];
if (password) {
params.push(password);
}
let msg = {
command: "JOIN",
params: [channel],
params: params,
};
return this.roundtrip(msg, (msg) => {
switch (msg.command) {