 		try
 			m = JSON.parse message
 		catch err
-			console.log "JSON.parse(message) failed: " + err.message
+			console.log "JSON.parse(message) failed: #{err.message}"
 		switch m.event
 			when "comment:created"
 				try

		channelPrefixes: "&#",
		messageSplit: 512

	ircBot.addListener 'message', (from, to, message) ->
		console.log '%s => %s: %s', from, to, message
		return if from is ircBot.nick
		for user, info of userList
			console.log user, info
			continue unless from == user
			if message.toLowerCase() is "sup " + ircBot.nick
				ircBot.say to, "OH YOU KNOW JUST ENSLAVING THE HUMAN RACE"
			# NOTE: The Regex below only returns true if the message is ".#"
			# (# = number of any size)
			else if (/^(\.[0-9]+)$/.test message) and info.canHeart
				commentId = message.replace ".", ""
				console.log "IRC => postAddCommentHeart: ", user, commentId,
					message, channelId, info.mixlrUserLogin, info.mixlrAuthSession
				postAddCommentHeart commentId, info, userAgent
			else
				console.log "IRC => postComm: ", user, message, channelId,
					info.mixlrUserLogin, info.mixlrAuthSession
				postComm message, channelId, info, userAgent

postMix = (user, url, data) ->
	jar = request.jar()

ircBot = {}

useFirebase = true

ircMessage = (from, to, message) ->
	console.log "#{from} => #{to}: #{message}"
	return if from is ircBot.nick  # abort if talking to self
	info = userList[from]
	return unless info?  # abort if this is a nobody
	switch
		when message.toLowerCase() is "sup " + ircBot.nick
			ircBot.say to, "OH YOU KNOW JUST ENSLAVING THE HUMAN RACE"
		# NOTE: The Regex below only returns true if the message is ".#"
		# (# = number of any size)
		when (/^(\.[0-9]+)$/.test message) and info.canHeart
			commentId = message.replace ".", ""
			console.log "IRC => postAddCommentHeart: ", from, commentId,
				message, channelId, info.mixlrUserLogin, info.mixlrAuthSession
			postAddCommentHeart commentId, info, userAgent
		else
			console.log "IRC => postComm: ", from, message, channelId,
				info.mixlrUserLogin, info.mixlrAuthSession
			postComm message, channelId, info, userAgent

# Creates the IRC client with given params
ircInitBot = () ->
