? if ($msg->{event} eq "topic") {
    Topic changed to "= $msg->{body} ?>"
?   if ($msg->{nick}) {
      by 
= $msg->{nick} ?>
?   }
? } elsif ($msg->{event} eq "invite") {
    = $msg->{nick} ?> has invited you to join = $msg->{body} ?>
? } elsif ($msg->{event} eq "joined" or $msg->{event} eq "left") { 
    
= $msg->{nick} ?> = $msg->{event} ?> the chat room.
?   if ($msg->{body}) {
      (= $msg->{body} ?>)
?   }
? } elsif ($msg->{event} eq "nick") {
    = $msg->{nick} ?> is now known as 
= $msg->{body} ?>.
? } elsif ($msg->{event} eq "disconnect") {
    You have been disconnected
      {body}) { ?>
        (= $msg->{body} ?>)
       } ?>
? }