use lib get_info 'xchatdir';
use Xchat::XPI;
+use Xchat::XPI::Utils qw<save_context>;
our $VERSION = '0.03';
push @{$chans{$_->{type}}}, $_ for grep $_->{server} eq $serv,
get_list 'channels';
- my $oldctxt = get_context;
+ my $guard = save_context;
my $onachan;
for (@{$chans{2}}) {
print_op $nick, $host;
}
- set_context $oldctxt;
-
return EAT_NONE;
};