         ))
         box = this.$('#chat-box')
         box.scrollTop(box[0].scrollHeight)
+        if not @focused
+            @missed_msgs += 1
+            document.title = '[' + @missed_msgs + '] ' + @title
 
     _rateOk: =>
         now = new Date().getTime()

        @players = {}
        @last_chat_times = []
        @chat_blocked = false
        $(@el).html(this._render('lobby'))
        this._renderPlayers()

        server = @app.getServer()
        server.bind('connecting', this._connecting)

    _clearChat: =>
        this.$('#msg-list > *').remove()

    _focused: =>
        @focused = true
        @missed_msgs = 0
        document.title = @title
    
    _blurred: =>
        @focused = false

class window.HostCustomView extends View
    id: 'host-custom-view'

