git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1264
c11ca15a-4712-0410-83d8-
924469b57eb5
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;