We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7a898 commit 24b2d52Copy full SHA for 24b2d52
src/irc.coffee
@@ -77,19 +77,19 @@ class IrcBot extends Adapter
77
getUserFromName: (name) ->
78
return @robot.brain.userForName(name) if @robot.brain?.userForName?
79
80
+ # Deprecated in 3.0.0
81
return @userForName name
82
83
getUserFromId: (id) ->
84
+ # TODO: Add logic to convert object if name matches
85
return @robot.brain.userForId(id) if @robot.brain?.userForId?
86
87
88
return @userForId id
89
90
createUser: (channel, from) ->
- user = @getUserFromName from
- unless user?
- id = new Date().getTime().toString()
91
- user = @getUserFromId id
92
- user.name = from
+ user = @getUserFromId from
+ user.name = from
93
94
if channel.match(/^[&#]/)
95
user.room = channel
0 commit comments