Seen: Fix error message ('You must be in') for @since.

This commit is contained in:
Valentin Lorentz 2011-12-03 12:45:07 +01:00
parent 0caf7dba5b
commit f1852f2e2b
2 changed files with 3 additions and 3 deletions

View File

@ -307,8 +307,8 @@ class Seen(callbacks.Plugin):
if nick is None: if nick is None:
nick = msg.nick nick = msg.nick
if nick not in irc.state.channels[channel].users: if nick not in irc.state.channels[channel].users:
irc.error(format(_('You must be in %s to use this command.'), irc.error(format(_('%s must be in %s to use this command.'),
channel)) ('You' if nick == msg.nick else nick), channel))
return return
end = None # By default, up until the most recent message. end = None # By default, up until the most recent message.
for (i, m) in utils.seq.renumerate(irc.state.history): for (i, m) in utils.seq.renumerate(irc.state.history):

View File

@ -1,3 +1,3 @@
"""stick the various versioning attributes in here, so we only have to change """stick the various versioning attributes in here, so we only have to change
them once.""" them once."""
version = '0.83.4.1+limnoria (2011-12-03T12:36:16+0100)' version = '0.83.4.1+limnoria (2011-12-03T12:45:07+0100)'