X-Git-Url: http://git.vpit.fr/?p=perl%2Fscripts%2Fxchat.git;a=blobdiff_plain;f=tools.pl;h=070f096d8da4777e71647ae74db4407d08453e70;hp=f7e5c4efc4c25ff7da85a1501cfbe568f9bb5dd8;hb=HEAD;hpb=edd1cbfd1a969e16d8df9988eb448a53c97c02e7 diff --git a/tools.pl b/tools.pl index f7e5c4e..070f096 100755 --- a/tools.pl +++ b/tools.pl @@ -10,7 +10,7 @@ use Xchat qw<:all>; use lib get_info 'xchatdir'; use Xchat::XPI; -use Xchat::XPI::Utils qw; +use Xchat::XPI::Utils qw; use constant MAX_MATCHES => 10; @@ -27,7 +27,7 @@ hook_command 'TC', sub { my $guard = save_context; for (get_list 'channels') { set_context $_->{context}; - command 'GUI COLOR 0'; + gui 'clear'; } return EAT_ALL; }, { @@ -121,7 +121,7 @@ hook_command 'HGREP', sub { $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 ]; }