]> git.vpit.fr Git - perl/scripts/xchat.git/blobdiff - tools.pl
Factor the GUI commands into a new utility function
[perl/scripts/xchat.git] / tools.pl
index f7e5c4efc4c25ff7da85a1501cfbe568f9bb5dd8..f7b160648c10a9eefebcaccacb596e9ba06812ff 100755 (executable)
--- 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<save_context>;
+use Xchat::XPI::Utils qw<gui save_context>;
 
 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;
 }, {