As noted, # is equivalent to $chan, so they work interchangeably regardless of context.