Skip to content

Commit

Permalink
Merge pull request nandub#101 from sshirokov/topic
Browse files Browse the repository at this point in the history
Support changing the topic in the adapter.
  • Loading branch information
jgable committed Dec 3, 2013
2 parents ad567c0 + decaf4d commit ab7aac0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit ab7aac0

Please sign in to comment.