 					console.log "JSON.parse(unescape(m.data)) failed: #{err.message}"
 				unless ignoreList[a.name]?
 					try
-						id = a.id
-						ircSay = irc.colors.wrap "light_gray", "["
-						ircSay += irc.colors.wrap "light_green", a.name
-						ircSay += irc.colors.wrap "light_gray", "]: "
-						ircSay += irc.colors.wrap "yellow", a.content
-						ircSay += irc.colors.wrap "light_gray", " [#{id}]"
-						ircBot.say ircChannel, ircSay
+						ircBot.say ircChannel, ircWrapMessage a
 					catch err
 						ircBot.say ircChannel, err.message
 						console.log "ircBot.say failed: #{err.message}"

	# Send HTTP POST
	sendHTTP httpHeader, ""

# Opens a websocket connection and receives data as long as the connection remains open
# TODO: add in the ping function (seems to be every 5 minutes)
openSock = () ->

					ircBot.say ircChannel, "STREAM IS LIVE: http://mixlr.com/jeff-gerstmann/chat/"

			when "comment:hearted"
				a = JSON.parse unescape m.data
				# TODO make this pretty, show original comment and translate
				# user_ids into names.
				ircBot.say ircChannel, ircWrapHeart a

	ws.on 'close', ->
		console.log "WebSocket Closed"
