use lib get_info 'xchatdir';
use Xchat::XPI;
+use Xchat::XPI::Utils qw<save_context>;
use constant MAX_MATCHES => 10;
}
hook_command 'TC', sub {
- my $oldctxt = get_context;
+ my $guard = save_context;
for (get_list 'channels') {
set_context $_->{context};
command 'GUI COLOR 0';
}
- set_context $oldctxt;
return EAT_ALL;
}, {
help_text => 'TC, reset all tab color indicators'