mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Since: Fix traceback.
This commit is contained in:
parent
f1852f2e2b
commit
78accda006
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user