         return true
 
     userAdded: (msg) =>
-        mmUser = @client.getUserByID msg.user_id
+        mmUser = @client.getUserByID msg.data.user_id
         @userChange mmUser
-        user = @robot.brain.userForId msg.user_id
+        user = @robot.brain.userForId mmUser.id
         user.room = msg.channel_id
         @receive new EnterMessage user
         return true
 
     userRemoved: (msg) =>
-        mmUser = @client.getUserByID msg.user_id
-        user = @robot.brain.userForId msg.user_id
+        mmUser = @client.getUserByID msg.data.user_id
+        user = @robot.brain.userForId mmUser.id
         user.room = msg.channel_id
         @receive new LeaveMessage user
         return true


    userChange: (user) =>
        return unless user?.id?
        newUser =
            name: user.username
            real_name: "#{user.first_name} #{user.last_name}"


    profilesLoaded: =>
        for id, user of @client.users
            @userChange user

    brainLoaded: =>
