Yikes that url didn\'t get formatted.
Btw you should loop through $comchan($me,%i) instead of $chan, because $chan makes no distinction between channels that you are in, and channels you are not in. When you disconnect from IRC, and have the optoin \"keep channels open\", and you reconnect, without rejoining those chans, those channel windows stay open and $chan includes those.
$comchan($me,N) only takes into account actual online channels.