added some rsfp checking
[spider.git] / perl / AnnTalk.pm
index 0269edaa1e7a9ea4150fff83f9dccaf5efa65e5a..86c3defab56447519c592d3e7dee92728e110bab 100644 (file)
@@ -69,7 +69,7 @@ sub is_talk_candidate
 {
        my ($from, $text) = @_;
        my $call;
-       ($call) = $text =~ /^\s*(?:[Xx]|[Tt][Oo]?)\s+([\w-]+)/;
+       ($call) = $text =~ /^\s*(?:[Xx]|[Tt][Oo]?:?)\s+([\w-]+)/;
        ($call) = $text =~ /^\s*>\s*([\w-]+)\b/ unless $call;
        ($call) = $text =~ /^\s*([\w-]+):?\b/ unless $call;
        if ($call) {