Skip to content

Commit

Permalink
Merge pull request hubotio#482 from kch/user-for-id-deprecation
Browse files Browse the repository at this point in the history
fix uses of @userForId to prevent warnings
  • Loading branch information
Tom Bell committed Apr 23, 2013
2 parents 32d3b3f + bbfd7dd commit 7d8028d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/adapters/campfire.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Campfire extends Adapter
(id, created, room, user, body) ->
bot.User user, (err, userData) ->
if userData.user
author = self.userForId(userData.user.id, userData.user)
author = self.robot.brain.userForId(userData.user.id, userData.user)
userId = userData.user.id
self.robot.brain.data
.users[userId].name = userData.user.name
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/shell.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Shell extends Adapter
@repl.on 'line', (buffer) =>
@repl.close() if buffer.toLowerCase() is 'exit'
@repl.prompt()
user = @userForId '1', name: 'Shell', room: 'Shell'
user = @robot.brain.userForId '1', name: 'Shell', room: 'Shell'
@receive new TextMessage user, buffer, 'messageId'

self.emit 'connected'
Expand Down

0 comments on commit 7d8028d

Please sign in to comment.