         @broadcastOwnMessage messageBody, PUBLIC, name
 
     # Delegates to the channel to handle received message
-    @broadcaster.on channelName, (msg) ->
-      channel.messageReceived msg
+    @broadcaster.on channelName, (msg) =>
+      @deliverMessageToChannel channel, msg
 
     @channels[name] = channel
 

    
    @getView().setValue inputValue

    @dropdownPrefix = ""
  loadView:(mainView)->
    @joinChannel "@#{@username}"
    @joinChannel PUBLIC
    #@joinChannel "#koding"

  joinChannel: (name) ->
    return @channels[name] if @channels[name]
