 				amount = transaction.amount
 			user.history[transactionIndex] = transaction
 	await Users_collection.update {id: user.id}, {$set: {history: user.history, lastAddFundTx: ""}, $inc: {funds: amount}}, {w:1}, defer(err)
-	if err return console.error err
+	if err then return console.error err
 
 	if ipnParams.status is "complete"
 		bot.sendMessage user.id, "You successfully added #{amount} DOGE to your funds"

				switch item.type
					when "add"
						message += "\n\tType: add, Amount: #{item.amount}, Status: #{item.status}"
			bot.sendMessage chatterID, message
		when "+withdraw"
			await checkIfRegistered chatterID, defer(registered, user)

	return unless ipnParams.ipn_secret is "reAEtHQzuqXfQEax9EqunysXIPN"
	# Credit the user / or cancel the transaction
	await Users_collection.findOne {lastAddFundTx: ipnParams.tx}, defer(err, user)
	if err then return console.error err

	amount = 0
	for transaction, transactionIndex in user.history
