Fix input trailing whitespace issues for .seen and .tell.
This commit is contained in:
parent
f2f812412c
commit
b11e8699b3
|
@ -41,7 +41,7 @@ def seen(bot, input):
|
||||||
return seen.__doc__
|
return seen.__doc__
|
||||||
|
|
||||||
|
|
||||||
query = input.msg[6:]
|
query = input.msg[6:].strip()
|
||||||
|
|
||||||
if query == input.nick:
|
if query == input.nick:
|
||||||
return "Have you looked in a mirror lately?"
|
return "Have you looked in a mirror lately?"
|
||||||
|
|
|
@ -38,7 +38,7 @@ def tell(bot, input):
|
||||||
if len(input.msg) < 6:
|
if len(input.msg) < 6:
|
||||||
return tell.__doc__
|
return tell.__doc__
|
||||||
|
|
||||||
query = input.msg[6:].partition(" ")
|
query = input.msg[6:].strip().partition(" ")
|
||||||
|
|
||||||
if query[0] == input.nick:
|
if query[0] == input.nick:
|
||||||
return "No."
|
return "No."
|
||||||
|
|
Loading…
Reference in New Issue