small bug fix
This commit is contained in:
parent
963d5c1f66
commit
00303569f2
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue