if (&IsChanConf('seenStats') > 0) {
my $i;
$i = $userstats{lc $seen[0]}{'Count'};
- $reply .= ". Has said a total of \002$i\002 messages" if (defined $i);
+ $reply .= ". Has said a total of \002$i\002 messages" if (defined $i);
$i = $userstats{lc $seen[0]}{'Time'};
- $reply .= '. Is idling for '.&Time2String(time() - $i) if (defined $i);
+ $reply .= '. Is idling for '.&Time2String(time() - $i) if (defined $i);
}
- $reply .= "last said\002:\002 '$seen[4]'.";
+ $reply .= ", last said\002:\002 '$seen[4]'.";
} else {
my $howlong = &Time2String(time() - $seen[1]);
$reply = "$seen[0] <$seen[3]> was last seen on IRC ".
my $extra = 0;
my $chan = $talkchannel;
my ($for);
+ my $mynick = $conn->nick();
if ($msgType eq 'private') {
if ($target =~ /^($mask{chan})\s+(.*)$/) {
my $line = &getRandomLineFromFile($bot_data_dir. '/blootbot.lart');
if (defined $line) {
- if ($target =~ /^(me|you|itself|\Q$ident\E)$/i) {
+ if ($target =~ /^(me|you|itself|\Q$mynick\E)$/i) {
$line =~ s/WHO/$who/g;
} else {
$line =~ s/WHO/$target/g;