Skip to content

Commit

Permalink
Cleaned up reading from dbinfo file.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 20, 2009
1 parent 3139814 commit 65245cc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions archive_jabber.pl
Expand Up @@ -189,13 +189,9 @@ sub signal_catcher {
usage() if (not defined $maildir);

open DBINFO,'<',$dbinfo or die("Couldn't open '$dbinfo': $!\n");
my $dsn = <DBINFO>;
my $dbuser = <DBINFO>;
my $dbpass = <DBINFO>;
my ($dsn, $dbuser, $dbpass) = <DBINFO>;
chomp($dsn, $dbuser, $dbpass);
close(DBINFO);
chomp($dsn);
chomp($dbuser);
chomp($dbpass);

$tmpemail = "$maildir/tmp/xmpp-chatlog-tmp-$$.txt";

Expand Down

0 comments on commit 65245cc

Please sign in to comment.