mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Users: do not repeat names for each hostmask per channel in users
This commit is contained in:
parent
0436294090
commit
72eb7f9e24
@ -171,10 +171,16 @@ sub cmd_users {
|
||||
$sep = "";
|
||||
}
|
||||
|
||||
foreach my $hostmask (sort { $self->{user_index}->{$chan}->{$a} cmp $self->{user_index}->{$chan}->{$b} }
|
||||
keys %{$self->{user_index}->{$chan}})
|
||||
my %seen_names;
|
||||
|
||||
foreach my $hostmask (
|
||||
sort { $self->{user_index}->{$chan}->{$a} cmp $self->{user_index}->{$chan}->{$b} }
|
||||
keys %{$self->{user_index}->{$chan}}
|
||||
)
|
||||
{
|
||||
my $name = $self->{user_index}->{$chan}->{$hostmask};
|
||||
next if $seen_names{$name};
|
||||
$seen_names{$name} = 1;
|
||||
$text .= $sep;
|
||||
my $has_cap = 0;
|
||||
foreach my $key ($self->{users}->get_keys($name)) {
|
||||
|
Loading…
Reference in New Issue
Block a user