my ($chatnet, $channel, $nick, $address) = @_;
my $flags;
no strict 'refs';
- if (defined %{ 'Irssi::Script::people::' }) {
+ if (%{ 'Irssi::Script::people::' }) {
if (defined ($channel)) {
$flags = (&{ 'Irssi::Script::people::find_local_flags' }($chatnet,$channel,$nick,$address));
} else {
$flags = join('',keys(%{$flags}));
} else {
my $shasta;
- if (defined %{ 'Irssi::Script::friends_shasta::' }) {
+ if (%{ 'Irssi::Script::friends_shasta::' }) {
$shasta = 'friends_shasta';
} elsif (defined &{ 'Irssi::Script::friends::get_idx' }) {
$shasta = 'friends';