This commit is contained in:
root 2016-09-21 14:57:02 +02:00
parent abd898f025
commit 95f595d701

View File

@ -155,6 +155,7 @@ sub on_public {
$mynick =~ s/\[/\\[/g; $mynick =~ s/\[/\\[/g;
$mynick =~ s/\]/\\]/g; $mynick =~ s/\]/\\]/g;
print "My nick: $mynick\n";
if ($arg =~ /^$mynick[,: ]/i || $arg =~ /^!/ ) { if ($arg =~ /^$mynick[,: ]/i || $arg =~ /^!/ ) {
if ($arg =~ /^(?:$mynick[,: ]|!)\s*ignore (.+)\s*$/i) { if ($arg =~ /^(?:$mynick[,: ]|!)\s*ignore (.+)\s*$/i) {
@ -510,6 +511,13 @@ sub adjust_nick
$count += $_; $count += $_;
} }
close CMDPIPE; close CMDPIPE;
$conn->nick(sprintf('vivivi[%s]', $count)) if ( $count > 0 ); if ( $count > 0 )
{
$conn->nick(sprintf('vivivi[%d]', $count));
}
else
{
$conn->nick('vivivi');
}
} }