From 6e7736914cfc41e20e6b760ff5423146e3108fb9 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Sun, 27 Dec 2020 12:57:46 +0100 Subject: [PATCH] add method setTopic --- lib/irc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/irc.js b/lib/irc.js index 6299483e..e393936c 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -1213,6 +1213,10 @@ Client.prototype.notice = function(target, text) { this._speak('NOTICE', target, text); }; +Client.prototype.setTopic = function(target, text) { + 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));