Skip to content

Commit

Permalink
restore a notice method
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiz committed Jul 27, 2012
1 parent 30b87df commit a70f95b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ Response = require('hubot').Response
Irc = require 'irc'

class IrcBot extends Adapter
constructor: (@robot) ->
super @robot

@robot.notice = (user, strings...) ->
@adapter.notice user, strings...

@robot.Response = IrcResponse

send: (user, strings...) ->
for str in strings
if not str?
Expand Down

0 comments on commit a70f95b

Please sign in to comment.