diff --git a/plugins/seen.py b/plugins/seen.py index 71821b8..4085794 100755 --- a/plugins/seen.py +++ b/plugins/seen.py @@ -31,8 +31,11 @@ def seen_sieve(paraml, input=None, db=None): @hook.command def seen(inp, nick='', chan='', db=None, input=None): - """seen -- Tell when a nickname was last in active in one of this bot's channels.""" - + """seen -- 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." diff --git a/plugins/tell.py b/plugins/tell.py index bf0d887..5e54c77 100755 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -95,7 +95,7 @@ def tell(inp, nick='', chan='', db=None, input=None, notice=None): notice("Thanks for the message, {}!".format(user_from)) return - if not re.match("^[A-Za-z0-9_|.-\]\[]*$", user_to.lower()): + if not re.match("^[A-Za-z0-9_|.\-\]\[]*$", user_to.lower()): notice("I cant send a message to that user!") return