Mercurial > libervia-backend
diff src/plugins/plugin_misc_invitations.py @ 2322:310a454c8657
plugins invitation, XEP-0277: strip language, we don't want spaces
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 12 Jul 2017 19:05:33 +0200 |
parents | c05000d00dbb |
children | 8b37a62336c3 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_invitations.py Sun Jul 09 16:17:16 2017 +0200 +++ b/src/plugins/plugin_misc_invitations.py Wed Jul 12 19:05:33 2017 +0200 @@ -254,7 +254,7 @@ ## 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