mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added better handling, hopefully fixing bug #860614.
This commit is contained in:
parent
8a739241a1
commit
b1cd34b91e
@ -187,7 +187,10 @@ class Unix(callbacks.Privmsg):
|
||||
return
|
||||
try:
|
||||
(r, w) = popen2.popen4([self.spellCmd, '-a'])
|
||||
r.readline() # Banner.
|
||||
s = r.readline() # Banner, hopefully.
|
||||
if 'sorry' in s.lower():
|
||||
irc.error(msg, s)
|
||||
return
|
||||
w.write(word)
|
||||
w.write('\n')
|
||||
w.flush()
|
||||
|
Loading…
Reference in New Issue
Block a user