mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-30 22:24:20 +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.')
|
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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user