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

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

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

      "#{user.name}/#{user.room}"

    @get: (user) ->
      Dialogue.dialogues[Dialogue.getKey user]

    @add: (dialogue) ->
      Dialogue.dialogues[dialogue.key] = dialogue
