]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Topic.pl
topic info now includes length
[infobot.git] / src / Modules / Topic.pl
index 84eca7bac19b20f010c1a7736b3500a269ea7d08..6cd8a143863ad79bbafa4c5397eec4143a8451b6 100644 (file)
@@ -476,9 +476,10 @@ sub Topic {
     if (exists $topic{$chan}{'Who'} and exists $topic{$chan}{'Time'}) {
        $reply = "topic on \002$chan\002 was last set by ".
                $topic{$chan}{'Who'}. ".  This was done ".
-               &Time2String(time() - $topic{$chan}{'Time'}) ." ago.";
+               &Time2String(time() - $topic{$chan}{'Time'}) ." ago".
+               ".  Length: ".length($topic{$chan}{'Current'});
        my $change = $topic{$chan}{'What'};
-       $reply .= "Change => $change" if (defined $change);
+       $reply .= ".  Change => $change" if (defined $change);
     }
 
     &performStrictReply($reply);