 				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"

				"type": "sent tip"
				"amount": -amount
				"status": "sent"
			await Users_collection.update {id: chatterID}, {$inc: {funds: -amount}, $push:{history: tip1Tx}}, {w:1}, defer(err)
			if err
				console.error err

				switch item.type
					when "add"
						message += "\n\tType: add, Amount: #{item.amount}, Status: #{item.status}"
					when "withdraw"
						message += "\n\tType: withdraw, Amount: #{item.amount} (-1 DOGE tx fee), Address: #{item.address}"
					when "sent tip"
						message += "\n\tType: sent tip, Amount: #{item.amount}, Recipient: #{item.recipient}"
					when "received tip"
						message += "\n\tType: received tip, Amount: #{item.amount}, Sender: #{item.sender}"
			bot.sendMessage chatterID, message
		when "+withdraw"
			await checkIfRegistered chatterID, defer(registered, user)
