- } elsif ($ref[1] eq 'talk') {
- $s = "$ref[3] -> $ref[2] ($ref[4]) $ref[5]";
- } elsif ($ref[1] eq 'ann') {
- $s = "$ref[3] -> $ref[2] $ref[4]";
+ } elsif ($r->[1] eq 'talk') {
+ $r->[5] ||= "";
+ $s = "$r->[3] -> $r->[2] ($r->[4]) $r->[5]";
+ } elsif ($r->[1] eq 'ann' || $r->[1] eq 'chat') {
+ $r->[4] ||= "";
+ $r->[4] =~ s/^\#\d+ //;
+ $s = "$r->[3] -> $r->[2] $r->[4]";