Rizon colors vhosts... yes.
sub host {
my $userhost = lc $_[0];
- return $userhost =~ /@([^@]+)$/ ? $1 : $userhost;
+ return $userhost =~ /@([^@]+)$/ ? strip_code($1) : $userhost;
}
sub add {
return EAT_NONE if $opers{$serv}{irc_lc($nick)};
$opers{$serv}{irc_lc($nick)} = $nick;
- my $host = $_[0][4] . '@' . $_[0][5];
+ my $host = $_[0][4] . '@' . strip_code $_[0][5];
my %chans;
push @{$chans{$_->{type}}}, $_ for grep $_->{server} eq $serv,
get_list 'channels';
$txt = qr/$txt/i;
my @matches;
for (get_list 'users') {
- my $host = $_->{host};
+ my $host = strip_code $_->{host};
next unless $host =~ /$txt/;
push @matches, [ $_->{nick}, $host ];
}