my @contexts = get_servers_ctxt;
my $guard = save_context;
for (@contexts) {
- set_context $_;
+ set_context $_ or next;
my $passwd = $forcepasswd || get_info 'nickserv';
next unless $passwd;
command 'ID ' . $passwd;
my @contexts = get_servers_ctxt;
my $guard = save_context;
for (@contexts) {
- set_context $_;
+ set_context $_ or next;
my $passwd = $forcepasswd || get_info 'nickserv';
next unless $passwd;
if (nickcmp(get_info('nick'), $target)) {
hook_command "C$_", \&csmode, {
data => $_,
- help_text => join ' ', $_, '[nicks] ,', (lc $_),
+ help_text => join ' ', $_, '[nicks] ,', lc($_),
'the specified targets (or you if none) on the current channel via ChanServ'
} for map { $_, "DE$_" } qw<VOICE HALFOP OP PROTECT>;