X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=tools.pl;h=f7b160648c10a9eefebcaccacb596e9ba06812ff;hb=532ed2d6f4e5597f1dd76e71f2bd9880c5d779bb;hp=b06f166d614b31cb12d53410dc245cb41e790a85;hpb=9db5de0ec290fd8b82a9c510e0d627b31e44d9bd;p=perl%2Fscripts%2Fxchat.git diff --git a/tools.pl b/tools.pl index b06f166..f7b1606 100755 --- a/tools.pl +++ b/tools.pl @@ -10,6 +10,7 @@ use Xchat qw<:all>; use lib get_info 'xchatdir'; use Xchat::XPI; +use Xchat::XPI::Utils qw; use constant MAX_MATCHES => 10; @@ -23,12 +24,11 @@ BEGIN { } hook_command 'TC', sub { - my $oldctxt = get_context; + my $guard = save_context; for (get_list 'channels') { set_context $_->{context}; - command 'GUI COLOR 0'; + gui 'clear'; } - set_context $oldctxt; return EAT_ALL; }, { help_text => 'TC, reset all tab color indicators'