From 03c161636452163e931cde61f6c64988796b615c Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Thu, 21 Apr 2011 21:00:32 -0600 Subject: [PATCH] Maybe I should include the actual changes... --- lib/Core/IRC/Users.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/Core/IRC/Users.pm b/lib/Core/IRC/Users.pm index 25a97be..a4cacdb 100644 --- a/lib/Core/IRC/Users.pm +++ b/lib/Core/IRC/Users.pm @@ -28,14 +28,8 @@ hook_add('on_rcjoin', 'ircusers.onjoin', sub { hook_add('on_namesreply', 'ircusers.names', sub { my ($svr, $chan, undef) = @_; - # Iterate through the users for this channel. - foreach (keys %{$State::IRC::chanusers{$svr}{$chan}}) { - # Check if the user already exists. - if (!$users{$svr}{$_}) { - # They do not; WHO them. - API::IRC::who($svr, $_); - } - } + # WHO the channel. + API::IRC::who($svr, $chan); return 1; });