Merge branch 'master' of ssh://admin:/srv/scripts
This commit is contained in:
commit
ed10a4edc3
@ -251,6 +251,8 @@ sub on_public {
|
|||||||
&adjust_nick ( $conn );
|
&adjust_nick ( $conn );
|
||||||
}
|
}
|
||||||
} elsif ($arg =~ /^(?:$mynick[,: ]|!)\s*list\s*$/) {
|
} elsif ($arg =~ /^(?:$mynick[,: ]|!)\s*list\s*$/) {
|
||||||
|
&refresh ();
|
||||||
|
$conn->privmsg([ @to ], sprintf ( "%d problemes enregistres", ( scalar @ACKS )) );
|
||||||
my $id = 0;
|
my $id = 0;
|
||||||
foreach ( @ACKS )
|
foreach ( @ACKS )
|
||||||
{
|
{
|
||||||
@ -271,6 +273,8 @@ sub on_public {
|
|||||||
printf "[%lu] SCHEDULE_FORCED_SVC_CHECK;%s;%s;%lu\n",time(),$host,$svc,time();
|
printf "[%lu] SCHEDULE_FORCED_SVC_CHECK;%s;%s;%lu\n",time(),$host,$svc,time();
|
||||||
close CMDPIPE;
|
close CMDPIPE;
|
||||||
$conn->privmsg([ @to ], sprintf ( "Recheck forcé pour %s: %s", $host, $svc ) );
|
$conn->privmsg([ @to ], sprintf ( "Recheck forcé pour %s: %s", $host, $svc ) );
|
||||||
|
&refresh ();
|
||||||
|
$conn->privmsg([ @to ], sprintf ( "%d problemes enregistres", ( scalar @ACKS )) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -278,6 +282,8 @@ sub on_public {
|
|||||||
}
|
}
|
||||||
} elsif ($arg =~ /^(?:$mynick[,: ]|!)\s*recheck:?\s*all$/) {
|
} elsif ($arg =~ /^(?:$mynick[,: ]|!)\s*recheck:?\s*all$/) {
|
||||||
#recheck all
|
#recheck all
|
||||||
|
&refresh ();
|
||||||
|
$conn->privmsg([ @to ], sprintf ( "%d problemes enregistres", ( scalar @ACKS )) );
|
||||||
for my $i ( 0..(@ACKS-1) )
|
for my $i ( 0..(@ACKS-1) )
|
||||||
{
|
{
|
||||||
next unless($ACKS[$i]);
|
next unless($ACKS[$i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user