This topic, to me, is very unclear.
The usage of the # symbol in a script, is an alternative form for $chan
This does not create problems, and has been around for quite some time.
Please clarify the exact problem that you're encountering, including any error messages, and the relative section(s) of a script or two (unless it's only happening in one script)