diff options
| author | David Leadbeater | 2015-01-10 17:26:59 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:26:59 +0000 |
| commit | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (patch) | |
| tree | 03d3b85d868a72a6b162c7dca8ea7c0173510618 /scripts/thistory.pl | |
| parent | 6fa0cda4b3f7d54d5835fe580795e4f35980cc28 (diff) | |
| parent | 55e10f5aeb6d0559518623a432263d4a73d7614b (diff) | |
| download | scripts.irssi.org-1bae3cffef57d4d46d0230aa4f44cc52c7671b93.tar.bz2 | |
Merge pull request #83 from obfuscoder/perlcritic-s-z
Fix perlcritic issues for all scripts starting with s to z
Diffstat (limited to 'scripts/thistory.pl')
| -rw-r--r-- | scripts/thistory.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/thistory.pl b/scripts/thistory.pl index a1f5b3a..47bc85d 100644 --- a/scripts/thistory.pl +++ b/scripts/thistory.pl @@ -21,6 +21,7 @@ # v1.05 - Made the script more consistent with other # Irssi scripts. +use strict; use Irssi; use Irssi::Irc; use vars qw($VERSION %IRSSI); @@ -34,6 +35,7 @@ my $format = '"%topic" %nick (%address) [%mday.%mon.%year %hour:%min:%sec]'; # Amount of topics stored. my $tamount = 10; +my %topiclist; ###### Don't edit below this unless you know what you're doing ###### $VERSION = "1.05"; @@ -115,6 +117,7 @@ sub event_topic { $topic =~ s/%/%%/g; $topic .= '%n'; + my %val; $val{'sec'} = $sec < 10 ? "0$sec" : $sec; $val{'min'} = $min < 10 ? "0$min" : $min; $val{'hour'} = $hour < 10 ? "0$hour" : $hour; |
