Argh, stupid empty lines...I hate when I put those in there.

This commit is contained in:
Jeremy Fincher 2003-08-17 19:19:57 +00:00
parent 2b79b6501f
commit effb14e34a

View File

@ -164,13 +164,10 @@ class Unix(callbacks.Privmsg):
irc.error(msg, 'Aspell/ispell can\'t handle spaces in words.') irc.error(msg, 'Aspell/ispell can\'t handle spaces in words.')
return return
self._spellWrite.write(word) self._spellWrite.write(word)
self._spellWrite.write('\n') self._spellWrite.write('\n') line = self._spellRead.readline()
line = self._spellRead.readline()
# aspell puts extra whitespace, ignore it # aspell puts extra whitespace, ignore it
while line == '\n': while line == '\n':
line = self._spellRead.readline() line = self._spellRead.readline()
# parse the output # parse the output
if line[0] in '*+': if line[0] in '*+':
resp = '"%s" may be spelled correctly.' % word resp = '"%s" may be spelled correctly.' % word
@ -183,7 +180,6 @@ class Unix(callbacks.Privmsg):
resp = 'Possible spellings for "%s": %s.' % (word, s) resp = 'Possible spellings for "%s": %s.' % (word, s)
else: else:
resp = 'Something unexpected was seen in the [ai]spell output.' resp = 'Something unexpected was seen in the [ai]spell output.'
irc.reply(msg, resp) irc.reply(msg, resp)