Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

add method setTopic #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,10 @@ Client.prototype.notice = function(target, text) {
this._speak('NOTICE', target, text);
};

Client.prototype.setTopic = function(target, text) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test for this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you point me to a test I can take as an example? I'm not sure where to put it.

this._speak('TOPIC', target, text);
};

Client.prototype.emitChannelEvent = function(eventName, channel) {
var args = Array.prototype.slice.call(arguments, 2);
this.emit.apply(this, [eventName, channel].concat(args));
Expand Down