use lib get_info 'xchatdir';
use Xchat::XPI;
-use Xchat::XPI::Utils qw<save_context>;
+use Xchat::XPI::Utils qw<gui save_context>;
use constant MAX_MATCHES => 10;
my $guard = save_context;
for (get_list 'channels') {
set_context $_->{context};
- command 'GUI COLOR 0';
+ gui 'clear';
}
return EAT_ALL;
}, {
$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 ];
}