diff options
| author | bw1 | 2017-03-18 23:06:54 +0100 | 
|---|---|---|
| committer | bw1 | 2017-03-18 23:06:54 +0100 | 
| commit | eeb98423f3f9e80b59dd68ee476dfa121994ce1d (patch) | |
| tree | a50edf0b1300aca3fc704fc4d9905f7bdbcef12b | |
| parent | 6bc10c44ab71d688135e7668053789890d3adbd4 (diff) | |
| download | scripts.irssi.org-eeb98423f3f9e80b59dd68ee476dfa121994ce1d.tar.bz2 | |
[topicsed] a small correction
| -rw-r--r-- | _testing/config.yml | 1 | ||||
| -rw-r--r-- | scripts/topicsed.pl | 9 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/_testing/config.yml b/_testing/config.yml index e684369..12deff7 100644 --- a/_testing/config.yml +++ b/_testing/config.yml @@ -65,7 +65,6 @@ whitelist:    - scroller    - stocks    - sysinfoplus -  - topicsed    - tvmusor    - wordcompletition    - xetra diff --git a/scripts/topicsed.pl b/scripts/topicsed.pl index d56ed3d..58d0143 100644 --- a/scripts/topicsed.pl +++ b/scripts/topicsed.pl @@ -4,17 +4,18 @@  # Thanks to Mikael Magnusson for the idea and patch to implement a  # preview functionality. ;]  # - +use strict;  use Irssi; -use vars %IRSSI; +use vars qw/%IRSSI $VERSION/; +$VERSION="0.1";  %IRSSI = (  	authors		=> "Gabor Nyeki",  	contact		=> "bigmac\@vim.hu",  	name		=> "topicsed",  	description	=> "editing channel topics by regexps",  	license		=> "public domain", -	changed		=> "Fri Aug 13 19:27:38 CEST 2004" +	changed		=> "2017-03-18"  ); @@ -32,7 +33,7 @@ sub topicsed {  		return;  	}  	return if (!$server || !$server->{connected} || -		!$winit || $winit->{type} != 'CHANNEL'); +		!$winit || $winit->{type} ne 'CHANNEL');  	my $topic = $winit->{topic};  	my $x = $topic; | 
