I believe # refers to the active channel, while $chan refers to the channel that triggered the script.
I may be wrong, so I'll let a more experienced scripter reply, but I believe that's the difference.
I use $chan, or at least a variable that contains the channel to minimize errors.
Last edited by Firstmate; 05/02/09 08:57 PM.