When it joins the channel, the user masks are unknown. Try adding this line to your bot, or add to the on join event you have currently...
on 1:JOIN:#: {
if ($nick == $me) { /who $chan }
}
That will who the whole channel, activly getting every user's host mask in the channel. >:F