var %chan = $1 is better practice than assuming $1 will always be the channel; and it's more readable.