small bug fix

This commit is contained in:
Ward Wouts 2002-05-07 07:42:44 +00:00
parent 963d5c1f66
commit 00303569f2

View file

@ -216,11 +216,11 @@ def get_multi(subj, group)
return false
else
body = @articles.get_group_body_first(subj)
next if body == false
return false if body == false
if @articles.is_uuencoded(body)
file = Tempfile.new("riptmp", @config[group]["TEMPDIR"])
body.collect{|x| file.print "#{x}\n"}
next unless @articles.get_group_body_rest(subj, file)
return false unless @articles.get_group_body_rest(subj, file)
fileout = Tempfile.new("riptmp", @config[group]["TEMPDIR"])
mode, filename, body = @articles.uudecode(file, fileout)
body = fileout.path
@ -231,7 +231,7 @@ def get_multi(subj, group)
if @articles.is_yencoded(body)
file = Tempfile.new("riptmp", @config[group]["TEMPDIR"])
body.collect{|x| file.print "#{x}\n"}
next unless @articles.get_group_body_rest(subj, file)
return false unless @articles.get_group_body_rest(subj, file)
fileout = Tempfile.new("riptmp", @config[group]["TEMPDIR"])
mode, filename, body = @articles.ydecode(file, fileout)
body = fileout.path