Skip to content

Commit

Permalink
Merge pull request nandub#42 from BotDev/userid-fix
Browse files Browse the repository at this point in the history
Tweaked user ID generation.
  • Loading branch information
jgable committed Oct 15, 2012
2 parents 3cac371 + 04eb38e commit 57bfa43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class IrcBot extends Adapter
createUser: (channel, from) ->
user = @userForName from
unless user?
id = (new Date().getTime() / 1000).toString().replace('.','')
id = new Date().getTime().toString()
user = @userForId id
user.name = from

Expand Down

0 comments on commit 57bfa43

Please sign in to comment.