diff options
| author | David Leadbeater | 2015-02-02 17:36:06 +0100 |
|---|---|---|
| committer | David Leadbeater | 2015-02-02 17:36:06 +0100 |
| commit | 8c57dd74f36b0429b725ff2a511ea951376680dd (patch) | |
| tree | 8955895edd0432da036782d67aa253079b003ca8 /scripts/ircgallery.pl | |
| parent | a457c0a97058fadf1b84247efd16176989412bc9 (diff) | |
| parent | 0816da664099746d962ee06b7de71be7c570e069 (diff) | |
| download | scripts.irssi.org-8c57dd74f36b0429b725ff2a511ea951376680dd.tar.bz2 | |
Merge pull request #130 from ailin-nemui/localise_vars
Localise the $/ special variable.
Diffstat (limited to 'scripts/ircgallery.pl')
| -rw-r--r-- | scripts/ircgallery.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ircgallery.pl b/scripts/ircgallery.pl index c044a45..d700210 100644 --- a/scripts/ircgallery.pl +++ b/scripts/ircgallery.pl @@ -50,7 +50,7 @@ sub print_gallery { my $next_channels = 0; my $channels; - $. = "\n"; + local $/ = "\n"; my $f = gensym; if (!open($f, "<", "$cache_path/$nick")) { Irssi::print("Couldn't open file $cache_path/$nick: $!", MSGLEVEL_CLIENTERROR); |
