From b11e8699b38d8de932cea1a26bba6ff9442c10d7 Mon Sep 17 00:00:00 2001 From: Chris Skalenda Date: Sat, 4 Jul 2009 22:46:11 -0500 Subject: [PATCH] Fix input trailing whitespace issues for .seen and .tell. --- plugins/seen.py | 2 +- plugins/tell.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/seen.py b/plugins/seen.py index 03e4171..0f58df0 100644 --- a/plugins/seen.py +++ b/plugins/seen.py @@ -41,7 +41,7 @@ def seen(bot, input): return seen.__doc__ - query = input.msg[6:] + query = input.msg[6:].strip() if query == input.nick: return "Have you looked in a mirror lately?" diff --git a/plugins/tell.py b/plugins/tell.py index 1744678..532b380 100644 --- a/plugins/tell.py +++ b/plugins/tell.py @@ -38,7 +38,7 @@ def tell(bot, input): if len(input.msg) < 6: return tell.__doc__ - query = input.msg[6:].partition(" ") + query = input.msg[6:].strip().partition(" ") if query[0] == input.nick: return "No."