mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Seen: fix for tests
This commit is contained in:
parent
8b4dfe46ac
commit
be4c074f8d
@ -233,7 +233,7 @@ class Seen(callbacks.Plugin):
|
|||||||
saying. <channel> is only necessary if the message isn't sent on the
|
saying. <channel> is only necessary if the message isn't sent on the
|
||||||
channel itself. <nick> may contain * as a wildcard.
|
channel itself. <nick> may contain * as a wildcard.
|
||||||
"""
|
"""
|
||||||
if ircutils.strEqual(name, irc.nick):
|
if name and ircutils.strEqual(name, irc.nick):
|
||||||
irc.reply(_("You've found me!"))
|
irc.reply(_("You've found me!"))
|
||||||
return
|
return
|
||||||
if msg.nick not in irc.state.channels[channel].users:
|
if msg.nick not in irc.state.channels[channel].users:
|
||||||
@ -253,7 +253,7 @@ class Seen(callbacks.Plugin):
|
|||||||
and returns the last time user was active in <channel>. <channel> is
|
and returns the last time user was active in <channel>. <channel> is
|
||||||
only necessary if the message isn't sent on the channel itself.
|
only necessary if the message isn't sent on the channel itself.
|
||||||
"""
|
"""
|
||||||
if ircutils.strEqual(name, irc.nick):
|
if name and ircutils.strEqual(name, irc.nick):
|
||||||
irc.reply(_("You've found me!"))
|
irc.reply(_("You've found me!"))
|
||||||
return
|
return
|
||||||
if msg.nick not in irc.state.channels[channel].users:
|
if msg.nick not in irc.state.channels[channel].users:
|
||||||
|
Loading…
Reference in New Issue
Block a user