       "#{user.name}/#{user.room}"
 
     @get: (user) ->
-      Dialogue.dialogues[Dialogue.getKey user.name, user.room]
+      Dialogue.dialogues[Dialogue.getKey user]
 
     @add: (dialogue) ->
       Dialogue.dialogues[dialogue.key] = dialogue

    constructor: (user, callback) ->
      @username = user.name
      @room = user.room
      @key = Dialogue.getKey @username, @room
      @data = {}
      @listen callback
      Dialogue.add @

      if user instanceof Dialogue
        key = user.key
      else
        key = Dialogue.getKey user
      delete Dialogue.dialogues[key]

    @listen: util.deprecate((->), "Dialogue.listen is deprecated.")
