mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-09 12:29:22 +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
|
return
|
||||||
try:
|
try:
|
||||||
(r, w) = popen2.popen4([self.spellCmd, '-a'])
|
(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(word)
|
||||||
w.write('\n')
|
w.write('\n')
|
||||||
w.flush()
|
w.flush()
|
||||||
|
Loading…
Reference in New Issue
Block a user