Brainfuck: Prevent 'I tried to send you an empty message' on timeout.

master
Valentin Lorentz 2012-07-30 22:03:54 +00:00
parent 2ccc19d5f4
commit eef8526413
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@ class Brainfuck(callbacks.Plugin):
irc.error(_('Brainfuck syntax error: %s') % e.args[0])
return
except BrainfuckTimeout as e:
irc.reply(e.args[0])
if e.args[0] != '':
irc.reply(e.args[0])
irc.error(_('Brainfuck processor timed out.'))
return
except NotEnoughInput: