Skip to content

Commit

Permalink
Merge pull request slackapi#145 from charlessuh/real-name
Browse files Browse the repository at this point in the history
Store real name in Hubot brain
  • Loading branch information
paulhammond committed Jan 31, 2015
2 parents db92398 + dc2ded2 commit 7b2bd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SlackBot extends Adapter
if id is user.name then delete @robot.brain.data.users[user.id]

userChange: (user) =>
newUser = {name: user.name, email_address: user.profile.email}
newUser = {name: user.name, real_name: user.real_name, email_address: user.profile.email}
if user.id of @robot.brain.data.users
for key, value of @robot.brain.data.users[user.id]
unless key of newUser
Expand Down

0 comments on commit 7b2bd56

Please sign in to comment.