print a warning when the userlist goes out of sync

This commit is contained in:
Gunter Labes 2007-11-19 20:06:59 +00:00
parent ec86dbdbd3
commit 0ee4fdde1c

View file

@ -235,6 +235,7 @@ while (1) {
my $username = $user->{'attr'}->{'name'};
print STDERR &timestamp . "--> $username has logged on. ($userindex)\n" if $showjoins;
print LOG &logtimestamp . "--> $username has logged on. ($userindex)\n" if $logfile;
if ($userindex != @users) print STDERR "Warning: userlist out of sync: local index = @users vs remote index = $userindex\n"
$users[@users] = $user;
&serverstats() if $writestats;
} else {