? if ($msg->{event} eq "topic") {
    Topic changed to "= Text::MicroTemplate::encoded_string($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 from = $msg->{body} ?>
? } elsif ($msg->{event} eq "reconnect") {
      You have reconnected to = $msg->{body} ?>
? }