plugins invitation, XEP-0277: strip language, we don't want spaces
This commit is contained in:
parent
72ba9316f2
commit
ef6c0c30f5
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue