From decaf4d2dae467a2fca2bf46aec53bcff03a56c2 Mon Sep 17 00:00:00 2001 From: Yaroslav Shirokov Date: Fri, 29 Nov 2013 20:21:51 -0800 Subject: [PATCH] Support changing the topic in the adapter. --- src/irc.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/irc.coffee b/src/irc.coffee index 39b33f1..4d6a0de 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -17,6 +17,11 @@ class IrcBot extends Adapter for str in strings @bot.say target, str + topic: (envelope, strings...) -> + data = strings.join " / " + channel = envelope.room + @bot.send 'TOPIC', channel, data + emote: (envelope, strings...) -> # Use @notice if SEND_NOTICE_MODE is set return @notice envelope, strings if process.env.HUBOT_IRC_SEND_NOTICE_MODE?