         @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
 

    @template.update()

  pistachio:->
    parsedBody = @getData().body.replace(TOPICREGEX, "<a class='ttag' href='#'>$&</a>")
    parsedChannel = @getData().channel?.replace(TOPICREGEX, "<a href='#'>$&</a>")

    """

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

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