u must edit $chan to your favorite #channel
Be sure to change $chan here to #chan or people will modify your code instead of what they're supposed to change.