mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Seen: insert a witty message when calling seen/any on the bot
This commit is contained in:
parent
88f6496ac2
commit
8b4dfe46ac
@ -233,6 +233,9 @@ 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):
|
||||||
|
irc.reply(_("You've found me!"))
|
||||||
|
return
|
||||||
if msg.nick not in irc.state.channels[channel].users:
|
if msg.nick not in irc.state.channels[channel].users:
|
||||||
irc.error(format('You must be in %s to use this command.', channel))
|
irc.error(format('You must be in %s to use this command.', channel))
|
||||||
return
|
return
|
||||||
@ -250,6 +253,9 @@ 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):
|
||||||
|
irc.reply(_("You've found me!"))
|
||||||
|
return
|
||||||
if msg.nick not in irc.state.channels[channel].users:
|
if msg.nick not in irc.state.channels[channel].users:
|
||||||
irc.error(format('You must be in %s to use this command.', channel))
|
irc.error(format('You must be in %s to use this command.', channel))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user