fix weird case

This commit is contained in:
Ward Wouts 2003-06-20 09:56:15 +00:00
parent 2b6d23fa9e
commit fad451bc4f

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.68 2003/06/16 22:07:35 ward Exp $ # $Dwarf: ripnews.rb,v 1.69 2003/06/16 22:13:56 ward Exp $
# $Source$ # $Source$
require 'date' require 'date'
@ -290,6 +290,9 @@ def get_single(subj, group)
print " Unknown encoding (not UU, not yEnc), skipping...\n" print " Unknown encoding (not UU, not yEnc), skipping...\n"
return false return false
end end
if mode == false
return false
end
output_data(subj, mode, filename, body) output_data(subj, mode, filename, body)
return true return true
end end
@ -315,6 +318,9 @@ def get_multi(subj, group)
print " Unknown encoding (not UU, not yEnc), skipping...\n" print " Unknown encoding (not UU, not yEnc), skipping...\n"
return false return false
end end
if mode == false
return false
end
output_data(subj, mode, filename, body) output_data(subj, mode, filename, body)
return true return true
else else
@ -344,6 +350,9 @@ def get_multi(subj, group)
print " YDecoding...\n" print " YDecoding...\n"
mode, filename, body = YEnc.ydecode(file, fileout) mode, filename, body = YEnc.ydecode(file, fileout)
end end
if mode == false
return false
end
# horrible cheat to not lose the outputted file # horrible cheat to not lose the outputted file
body = fileout.path body = fileout.path