]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Modules/Topic.pl
If topicAuthor is on then show it in topic, otherwise just topic -- contribution...
[infobot.git] / src / Modules / Topic.pl
index 2a07c2ee59b99cfb519d172be22850933a05b2cb..96b0b3ff61932991a25c53e6afa89cac50a47f8b 100644 (file)
@@ -62,8 +62,11 @@ sub topicCipher {
 
        if ($setby =~ /^(unknown|)$/i) {
            push(@topic, $subtopic);
-       } else {
+       # If topicAuthor is on then show it in topic, otherwise just topic -- troubled
+       } elsif ($param{'topicAuthor'} eq "1") {
            push(@topic, "$subtopic ($setby)");
+       } else {
+           push(@topic, "$subtopic");
        }
     }