From 6b3b4fc5626109c0dfa852971e6b4302ae933e8c Mon Sep 17 00:00:00 2001 From: Nathan Blaney Date: Thu, 5 Sep 2013 16:00:49 +1000 Subject: [PATCH 1/2] Added support for checking in a set channel For example "~seen WizardCM #minecraft" --- plugins/seen.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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." From 114975d05870bf45a92bcd1aed39981c87aa9504 Mon Sep 17 00:00:00 2001 From: Nathan Blaney Date: Thu, 5 Sep 2013 16:04:03 +1000 Subject: [PATCH 2/2] Added hypen support to tell For example "~tell Mu5tank05-mc hello?" --- plugins/tell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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