diff options
Diffstat (limited to 'debian/patches/queryresume.pl.diff')
-rw-r--r-- | debian/patches/queryresume.pl.diff | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/queryresume.pl.diff b/debian/patches/queryresume.pl.diff new file mode 100644 index 0000000..27b74a5 --- /dev/null +++ b/debian/patches/queryresume.pl.diff @@ -0,0 +1,24 @@ +Description: "" +Forwarded: not-needed +Author: "" +Last-Update: 2010-05-12 +--- a/scripts/queryresume.pl ++++ b/scripts/queryresume.pl +@@ -32,13 +32,14 @@ + + sub sig_window_item_new ($$) { + my ($win, $witem) = @_; +- return unless (ref $witem && $witem->{type} eq 'QUERY'); ++ #return unless (ref $witem && $witem->{type} eq 'QUERY'); ++ return unless (ref $witem); + my @data; + my $filename = Irssi::settings_get_str('autolog_path'); + my $servertag = $witem->{server}->{tag}; + my $name = lc $witem->{name}; +- $filename =~ s/(\$tag|\$1)/$servertag/g; +- $filename =~ s/\$0/$name/g; ++ $filename =~ s/\$tag\b|\$\{tag\}|\$1\b|\$\{1\}/$servertag/g; ++ $filename =~ s/\$0\b|\$\{0\}/$name/g; + my @lt = localtime(time); + my $zone; + $filename = strftime($filename, @lt, $zone); |