commit 54ebdf8ec2110dd381e66e07349add7ead190dce Author: ilv ilv@users.noreply.github.com Date: Tue Nov 3 16:06:56 2015 -0300
Change related to #17211 --- gettor/xmpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gettor/xmpp.py b/gettor/xmpp.py index f9b025d..a605f50 100644 --- a/gettor/xmpp.py +++ b/gettor/xmpp.py @@ -283,7 +283,7 @@ class XMPP(object):
# first let's find out how many words are in the message # request shouldn't be longer than 3 words, but just in case - words = msg.split(' ') + words = re.split('\s+', msg.strip()) if len(words) > self.max_words: bogus_request = True self.log.info("Message way too long")