Added support for checking in a set channel

For example "~seen WizardCM #minecraft"
This commit is contained in:
Nathan Blaney 2013-09-05 16:00:49 +10:00
parent af2382aea5
commit 6b3b4fc562

View file

@ -31,7 +31,10 @@ def seen_sieve(paraml, input=None, db=None):
@hook.command
def seen(inp, nick='', chan='', db=None, input=None):
"""seen <nick> -- Tell when a nickname was last in active in one of this bot's channels."""
"""seen <nick> <channel> -- Tell when a nickname was last in active in one of this bot's channels."""
if len(inp.split(' ')) > 1:
chan = inp.split(' ')[1]
inp = inp.split(' ')[0]
if input.conn.nick.lower() == inp.lower():
return "You need to get your eyes checked."