 			# This is the magical line, that sends the packages
 			wol.wake mac, (error) ->
 				if error
-					msg.reply "shoot! #{error}"
+					callback "shoot! #{error}"
 				else
-					msg.reply "kicked #{mac} his shiny metal ass"
+					callback "kicked #{mac} his shiny metal ass"
 		else
-			msg.reply "'#{mac}' is not a mac adres, nor a machine I know"
+			callback "'#{mac}' is not a mac adres, nor a machine I know"
 			return
 
 			

	#
	# Send the package
	#
	wakeup = (machine, msg) ->
		machineList = robot.brain.get('wakeup') or null
		msg = msg or reply : ->

		# Is it a machine we know?
		if machineList? && machineList[machine]?

	# Send a WOL package
	# 
	robot.respond /kick (.*)/i, (msg) ->
		wakeup msg.match[1], (message) ->
			msg.reply message
		

	#
	# Listen to GET http requests
	# 
	robot.router.get '/wakeup/kick/:mac', (req, res) ->
		enabled = process.env.HUBOT_WAKEUP_HTTP_ENABLED	 

		if enabled == "true" or enabled == "1"
			mac = req.params.mac
			channel = process.env.HUBOT_WAKEUP_CHANNEL or "#general"

			wakeup mac, (message) ->
				robot.send {room: channel}, message
				res.end message
				return
		else
			res.end "http disabled"

