commands: add password param to /join
This commit is contained in:
parent
9f93e200ed
commit
fab42ba2ee
3 changed files with 14 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue