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.')
return
self._spellWrite.write(word)
self._spellWrite.write('\n')
line = self._spellRead.readline()
self._spellWrite.write('\n') line = self._spellRead.readline()
# aspell puts extra whitespace, ignore it
while line == '\n':
line = self._spellRead.readline()
# parse the output
if line[0] in '*+':
resp = '"%s" may be spelled correctly.' % word
@ -183,7 +180,6 @@ class Unix(callbacks.Privmsg):
resp = 'Possible spellings for "%s": %s.' % (word, s)
else:
resp = 'Something unexpected was seen in the [ai]spell output.'
irc.reply(msg, resp)