summaryrefslogtreecommitdiffstats
path: root/scripts/people.pl
diff options
context:
space:
mode:
authorJames Seward2015-02-01 18:29:23 +0000
committerJames Seward2015-02-01 18:29:23 +0000
commit41d9b45817f8f21f656e96bfebf3ed672ac3a2c1 (patch)
treed1e462935555ab903890542fa40a3b7f9a5e0e8f /scripts/people.pl
parent24ac437ca11bc60f3b0d5ca5274116ff384b4612 (diff)
downloadscripts.irssi.org-41d9b45817f8f21f656e96bfebf3ed672ac3a2c1.tar.bz2
Set record break char to newline when loading
I think another script of mine was breaking it, so people.pl couldn't load its own config file as it thought the whole thing was one massive line.
Diffstat (limited to 'scripts/people.pl')
-rw-r--r--scripts/people.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/people.pl b/scripts/people.pl
index 9823207..e35f578 100644
--- a/scripts/people.pl
+++ b/scripts/people.pl
@@ -11,7 +11,7 @@ unless ($@) {
import Crypt::PasswdMD5;
}
-$VERSION = "1.7";
+$VERSION = "1.8";
%IRSSI =
(
authors => "Marcin 'Qrczak' Kowalczyk, Johan 'ion' Kiviniemi",
@@ -1427,6 +1427,7 @@ sub load_config() {
%user_flags = ();
%channel_flags = ();
%user_channel_flags = ();
+ local $/ = "\n";
open CONFIG, $config or return;
while (<CONFIG>) {
chomp;