     }
 
   setHistory: (message = "") ->
-    user    = KD.nick()
+    user    = @nickname
     message = message.replace "$0", user
 
     @historyRef.child(Date.now()).set { message, user }

    @emit "PanelCreated", newPanel

  createSessionKey: ->
    nick = KD.nick()
    u    = KD.utils
    return  "#{nick}_#{u.generatePassword(4)}_#{u.getRandomNumber(100)}"

  getHost: ->
    return @sessionKey.split("_").first

  amIHost: ->
    [sessionOwner] = @sessionKey.split "_"
    return sessionOwner is KD.nick()

  showNotActiveView: ->
    notValid = new KDView


    @on "KDObjectWillBeDestroyed", =>
      @forceDisconnect()
      events = [ "value", "child_added", "child_removed", "child_changed" ]
      @workspaceRef.off eventName for eventName in events

  fetchUsers: ->
    @workspaceRef.once "value", (snapshot) =>
