]> git.vpit.fr Git - perl/scripts/xchat.git/blobdiff - tools.pl
Strip ANSI sequences from hostnames
[perl/scripts/xchat.git] / tools.pl
index f7b160648c10a9eefebcaccacb596e9ba06812ff..070f096d8da4777e71647ae74db4407d08453e70 100755 (executable)
--- a/tools.pl
+++ b/tools.pl
@@ -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 ];
  }