From: timriker Date: Wed, 23 Feb 2005 05:54:40 +0000 (+0000) Subject: unique? X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d46550ad979348a8ca6885f10ba7bc488a4c1ec8;p=infobot.git unique? git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1171 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/UserExtra.pl b/blootbot/src/UserExtra.pl index 821636c..11d6de2 100644 --- a/blootbot/src/UserExtra.pl +++ b/blootbot/src/UserExtra.pl @@ -75,12 +75,14 @@ sub chaninfo { ### unique user count. my @nicks; foreach $chan (keys %channels) { - foreach (keys %{ $channels{$chan}{''} }) { - next if (grep /^\Q$_\E$/, @nicks); + my $nick = ''; + foreach $nick (keys %{ $channels{$chan}{''} }) { + next if (grep /^\Q$nick\E$/, @nicks); $uucount++; - push(@nicks, $_); + push(@nicks, $nick); } } + &::DEBUG(join ":", @nicks); if (scalar @nicks != $uucount) { &DEBUG("nicks != uucount...");