diff options
| author | dequis | 2015-11-07 13:45:20 -0300 | 
|---|---|---|
| committer | dequis | 2015-11-07 14:04:22 -0300 | 
| commit | 7c68c0a357fe5634c1e32a0c8ee169abe5faf95f (patch) | |
| tree | 7ab86f645c0d1e54a7d28e7d215d23a04c9b0382 /scripts/trigger.pl | |
| parent | ae8b7a06e6b199923c5ff0c194891a924bf35015 (diff) | |
| download | scripts.irssi.org-7c68c0a357fe5634c1e32a0c8ee169abe5faf95f.tar.bz2 | |
trigger.pl: Fix for newer perls
Pretty much just doing what the warning told me to do.
Done some testing and seems to behave as intended.
Diffstat (limited to 'scripts/trigger.pl')
| -rw-r--r-- | scripts/trigger.pl | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/scripts/trigger.pl b/scripts/trigger.pl index 6b88cbd..4b070e6 100644 --- a/scripts/trigger.pl +++ b/scripts/trigger.pl @@ -736,7 +736,7 @@ sub get_flags {  	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 { @@ -745,7 +745,7 @@ sub get_flags {  		$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'; | 
