From 22a3a6aa70c2960983887717b98cab2149a18d89 Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Sun, 11 Jan 2015 23:31:09 -0800 Subject: [PATCH] Fix #121: don't accept tells to bot --- plugins/tell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/tell.py b/plugins/tell.py index eb1177b..7c1c1d9 100644 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -70,7 +70,7 @@ def showtells(inp, nick='', chan='', pm=None, db=None): @hook.command -def tell(inp, nick='', chan='', db=None): +def tell(inp, nick='', chan='', db=None, conn=None): ".tell -- relay to when is around" query = inp.split(' ', 1) @@ -85,7 +85,7 @@ def tell(inp, nick='', chan='', db=None): if chan.lower() == user_from.lower(): chan = 'a pm' - if user_to == user_from.lower(): + if user_to in (user_from.lower(), conn.nick.lower()): return "No." db_init(db)