quit if you're in the wrong encoding loop dammit

This commit is contained in:
Ward Wouts 2002-05-15 12:56:42 +00:00
parent 3035250ab1
commit e99c488703

View file

@ -10,7 +10,7 @@ require 'tempfile'
class Article
Debuglevel = 1
Debuglevel = 0
def initialize(nntpservers, groupname, newsrc="~/.newsrc")
@messids = []
@ -449,7 +449,10 @@ def _uudecode_file(file, outfile)
end
end
print "not uuencoded!\n" if file.eof
if file.eof
print "Not UUencoded!\n"
return false
end
print "c: #{c} mark: #{mark} lines: #{lines}\n" if Debuglevel > 1
print " UUdecoding...\n"
@ -511,7 +514,8 @@ def _uudecode_array(data)
end
unless (i < data.length)
print "not uuencoded!\n"
print "Not UUencoded!\n"
return false
end
print "UUdecoding...\n"
@ -622,7 +626,10 @@ def _ydecode_file(file, outfile)
end
end
print "not yencoded!\n" if file.eof
if file.eof
print "Not yencoded!\n"
return false
end
print " ydecoding...\n"
@ -731,7 +738,8 @@ def _ydecode_array(data)
end
unless (i < data.length)
print "not yencoded!\n"
print "Not yencoded!\n"
return false
end
print "ydecoding...\n"