mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-21 14:19:30 -04:00
Restrict the nickname length of the test user for check_ircd
check_ircd was using the string `ircd` plus the PID as a nickname for connecting to a IRC network by default. This caused errors, when the PID was too high and the network restricted the length of the nickname to 9 characters. This patch "fixes" this by just cutting it of, if it gets too big.
This commit is contained in:
parent
2f80d55b8e
commit
ead405515f
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ $ENV{'ENV'}='';
|
|||
# -----------------------------------------------------------------[ Global ]--
|
||||
|
||||
$PROGNAME = "check_ircd";
|
||||
my $NICK="ircd$$";
|
||||
my $NICK="ircd" . $$ % 10000;
|
||||
my $USER_INFO="monitor localhost localhost : ";
|
||||
|
||||
# -------------------------------------------------------------[ connection ]--
|
||||
|
|
|
|||
Loading…
Reference in a new issue