Since: Fix traceback.

This commit is contained in:
Valentin Lorentz 2011-12-03 20:55:25 +01:00
parent f1852f2e2b
commit 78accda006

View File

@ -306,6 +306,9 @@ class Seen(callbacks.Plugin):
"""
if nick is None:
nick = msg.nick
if channel not in irc.state.channels:
irc.error(_('I am not in %s.') % channel)
return
if nick not in irc.state.channels[channel].users:
irc.error(format(_('%s must be in %s to use this command.'),
('You' if nick == msg.nick else nick), channel))