Sorry, made a mistake when I was changing around something I had written.
Change:
else { var %nick-receiver = $0, %gift = $2 }To:
else { var %nick-receiver = $nick, %gift = $2 }As far as !treat, put an echo at the top of the givegift alias...
alias givegift {
echo -a Data: $1-
Then do !treat and see what appears after Data:. You should have a nick as well as a gift and the gift must be in the list of gifts in the alias. Let me know your results.
Edit: Also, it looks like you changed this line:
var %gift = $replace(beer,pie,cookie,pluspoint,ban,pizza,love)
You need to change it back to what it was. If you don't want "pie" to become "hot apple pie" and "pizza" to become "hot large pizza", then you can change each of those to whatever you want. But you can't change it the way you did. If there is a reason you made that change, please explain it and I'll help you to change it.