git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1301
c11ca15a-4712-0410-83d8-
924469b57eb5
# CLI -- Command Line Interface
set Interface IRC
+# [0/1] Show topic author (troubled)
+# If 1, topics managed with !topic add foo will show the nick in ()'s
+# If 0, the nick of the creator will be recorded for !topic list, but not shown in the topic itself
+set topicAuthor 1
+
####
# Now modify blootbot.chan for per-channel specific configuration see
# sample.chans for info.
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");
}
}