plugins invitation, XEP-0277: strip language, we don't want spaces

This commit is contained in:
Goffi 2017-07-12 19:05:33 +02:00
commit ef6c0c30f5
2 changed files with 3 additions and 3 deletions

View file

@ -254,7 +254,7 @@ class InvitationsPlugin(object):
## email
language = kwargs.pop(u'language', None)
if language is not None:
extra[u'language'] = language
extra[u'language'] = language.strip()
if email is not None:
extra[u'email'] = email