Ghost-writer commented on a Page, Thank you Script  -  Jan 22, 2010

Hash table could be used, would be much cleaner than these variables. But after making this i think a $readini could be used more efficiently :P.

on $*:TEXT:/^[.!@]ThankYou/Si:#: {
  if ($2 == $nick) { msg $chan Pat yourself on the back $nick $+ , but i am not adding a thanks to your record. }
  else {
    hinc -m Thanks $+ $chan $address($2,2)
    notice $2 Your thanks has been increased by $nick $+ . You now has $hget(Thanks $+ $chan,$address($2,2))
    msg $chan A thank you has been added to $2 $+ 's record.
  }
}
on $*:TEXT:/^[.!@]CheckThank/Si:#: {
  if (!$timer(floodthank $+ $nick)) {
    .timerfloodthank $+ $nick 1 6 noop
    notice $nick You currently have $hget(Thanks $+ $chan,$iif($2,$v1,$nick))
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.