You want it so that every time you join #mirc you say "HI!"?
Code:
on *:JOIN:#mirc:if $nick == $me msg # HI!