Added better handling, hopefully fixing bug #860614.

This commit is contained in:
Jeremy Fincher 2004-01-01 20:06:42 +00:00
parent 8a739241a1
commit b1cd34b91e
1 changed files with 4 additions and 1 deletions

View File

@ -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()