Skip to content

Commit

Permalink
Merge pull request #373 from klexas/patch-1
Browse files Browse the repository at this point in the history
Channel buffer missing Key
  • Loading branch information
MaxLeiter authored Jan 17, 2024
2 parents fa79f5d + be3cd7f commit cd7ece4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/clientapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ order.
Request that the IRC server sends a list of available channels. Extra parameters
will be sent.

##### `.channel(channel_name)`
##### `.channel(channel_name, [key])`
Create a channel object with the following methods:
* `say(message)`
* `notice(message)`
Expand Down
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ module.exports = class IrcClient extends EventEmitter {
this.raw(args);
}

channel(channel_name) {
return new Channel(this, channel_name);
channel(channel_name, key) {
return new Channel(this, channel_name, key);
}

match(match_regex, cb, message_type) {
Expand Down

0 comments on commit cd7ece4

Please sign in to comment.