mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 14:14:37 +01:00
Argh, stupid empty lines...I hate when I put those in there.
This commit is contained in:
parent
2b79b6501f
commit
effb14e34a
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user