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=20f05619dddb0d88d5985f03f535705c26127287;p=infobot.git unique? git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@1171 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/UserExtra.pl b/src/UserExtra.pl index 821636c..11d6de2 100644 --- a/src/UserExtra.pl +++ b/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...");