Fix input trailing whitespace issues for .seen and .tell.

This commit is contained in:
Chris Skalenda 2009-07-04 22:46:11 -05:00
parent f2f812412c
commit b11e8699b3
2 changed files with 2 additions and 2 deletions

View File

@ -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?"

View File

@ -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."