Skip to content
Browse files

Merge pull request #10 from drdamour/master

fixed reply messages (was doing @undefined)
  • Loading branch information...
2 parents a407404 + 61997a9 commit 7b225e0982a15a7c1a1bc03acd5aa943c198bb50 @unixcharles committed Mar 19, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/talker.coffee
View
8 src/talker.coffee
@@ -6,13 +6,13 @@ net = require('net')
tls = require('tls')
class Talker extends Adapter
- send: (user, strings...) ->
+ send: (envelope, strings...) ->
strings.forEach (str) =>
- @bot.write user.room, {"type": "message", "content": str}
+ @bot.write envelope.room, {"type": "message", "content": str}
- reply: (user, strings...) ->
+ reply: (envelope, strings...) ->
strings.forEach (str) =>
- @send user, "@#{user.name} #{str}"
+ @send envelope, "@#{envelope.user.name} #{str}"
run: ->
self = @

0 comments on commit 7b225e0

Please sign in to comment.
Something went wrong with that request. Please try again.