my @prev = &topicDecipher($chan);
my $new = "$args ($orig{who})";
+ $topic{$chan}{'What'} = "Added '$args'.";
if (scalar @prev) {
$new = &topicCipher(@prev, sprintf("%s||%s", $args, $who));
}
return $noreply;
}
+ $topic{$chan}{'What'} = "Deleted ".join("/",@delete);
+
foreach (@delete) {
if ($_ > $topiccount || $_ < 1) {
&msg($who, "error: argument out of range. (max: $topiccount)");
&msg($who, "warning: adding double pipes manually == evil. be warned.");
}
+ $topic{$chan}{'What'} = "SAR $args";
+
# SAR patch. mu++
if ($args =~ m|^\s*s([/,#])(.+?)\1(.*?)\1([a-z]*);?\s*$|) {
my ($delim, $op, $np, $flags) = ($1,quotemeta $2,$3,$4);
return $noreply;
}
+ $topic{$chan}{'What'} = "Move $from to $to";
+
if ($action =~ /^(swap)$/i) {
my $tmp = $subtopics[$to - 1];
$subtopics[$to - 1] = $subtopics[$from - 1];
my @subtopics = &topicDecipher($chan);
my @newtopics;
+ $topic{$chan}{'What'} = "shuffled";
+
foreach (&makeRandom(scalar @subtopics)) {
push(@newtopics, $subtopics[$_]);
}
return $noreply;
}
+ $topic{$chan}{'What'} = "Restore topic $args";
+
# following needs to be verified.
if ($args =~ /^last$/i) {
if (${$topic{$chan}{'History'}}[0] eq $topic{$chan}{'Current'}) {
} elsif ($cmd =~ /^rehash$/i) {
### CMD: REHASH.
$_ = "Rehashing topic...";
+ $topic{$chan}{'What'} = "Rehash";
&topicNew($chan, $topic{$chan}{'Current'}, $_, 1);
} elsif ($cmd =~ /^info$/i) {
$reply = "topic on \002$chan\002 was last set by ".
$topic{$chan}{'Who'}. ". This was done ".
&Time2String(time() - $topic{$chan}{'Time'}) ." ago.";
+ my $change = $topic{$chan}{'What'};
+ $reply .= "Change => $change" if (defined $change);
}
&performStrictReply($reply);