This commit is contained in:
root 2016-09-21 15:22:39 +02:00
parent 95f595d701
commit 5eaa81d5c8

View File

@ -234,7 +234,8 @@ sub on_public {
} elsif ($arg =~ /(?:hey|hi|hello|yo)(?:\.|,|\!|\s_)/i) {
$self->privmsg([ @to ], "Yo, $nick!");
} elsif ($arg =~ /(?:$mynick[,: ]|!)\s*ta\s*g(:?ueu|o)le/i ||
$arg =~ /(?:$mynick[,: ]|!)\s*chut/i) {
$arg =~ /(?:$mynick[,: ]|!)\s*chut/i ||
$arg =~ /(?:$mynick[,: ]|!)\s*sieste/i ) {
if ( $::tagueule == 0 )
{
$self->privmsg([ @to ], "$nick: d'accord je la ferme :-(");
@ -511,7 +512,11 @@ sub adjust_nick
$count += $_;
}
close CMDPIPE;
if ( $count > 0 )
if ( $::tagueule )
{
$conn->nick('vivivi[zzz]');
}
elsif ( $count > 0 )
{
$conn->nick(sprintf('vivivi[%d]', $count));
}