diff options
author | Lance Stout <lancestout@gmail.com> | 2012-10-19 00:15:21 -0700 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2012-10-19 00:15:21 -0700 |
commit | 0d448b82214ed8bed3477db375799ae8399d0393 (patch) | |
tree | cad4b16d9c1622d858d70e6aae4dece230566734 /sleekxmpp/plugins/xep_0004 | |
parent | 77f2a339e1626501a1df388050f09342d7bbcd1d (diff) | |
parent | e6c95f0a2acfd56ad47f60d9576a0db5458ed118 (diff) | |
download | slixmpp-0d448b82214ed8bed3477db375799ae8399d0393.tar.gz slixmpp-0d448b82214ed8bed3477db375799ae8399d0393.tar.bz2 slixmpp-0d448b82214ed8bed3477db375799ae8399d0393.tar.xz slixmpp-0d448b82214ed8bed3477db375799ae8399d0393.zip |
Merge branch 'master' into develop
Diffstat (limited to 'sleekxmpp/plugins/xep_0004')
-rw-r--r-- | sleekxmpp/plugins/xep_0004/stanza/form.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0004/stanza/form.py b/sleekxmpp/plugins/xep_0004/stanza/form.py index bbf0ee7d..721ecc35 100644 --- a/sleekxmpp/plugins/xep_0004/stanza/form.py +++ b/sleekxmpp/plugins/xep_0004/stanza/form.py @@ -201,7 +201,8 @@ class Form(ElementBase): del self['instructions'] if instructions in [None, '']: return - instructions = instructions.split('\n') + if not isinstance(instructions, list): + instructions = instructions.split('\n') for instruction in instructions: inst = ET.Element('{%s}instructions' % self.namespace) inst.text = instruction |