summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0050/adhoc.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-12-04 01:24:35 -0800
committerLance Stout <lancestout@gmail.com>2011-12-04 01:24:35 -0800
commitb7b53362e1adf17fb7f1f41a003ad2139cbc1474 (patch)
tree0a08f318df801be98b3e03104ab3409bd187b709 /sleekxmpp/plugins/xep_0050/adhoc.py
parent68cf66a5fe9b594c32d2cf28c1ea0497387c9101 (diff)
downloadslixmpp-b7b53362e1adf17fb7f1f41a003ad2139cbc1474.tar.gz
slixmpp-b7b53362e1adf17fb7f1f41a003ad2139cbc1474.tar.bz2
slixmpp-b7b53362e1adf17fb7f1f41a003ad2139cbc1474.tar.xz
slixmpp-b7b53362e1adf17fb7f1f41a003ad2139cbc1474.zip
Ensure that adhoc command clients have form plugin registered.
The form plugin was being registered on first use for providers, but not for clients receiving the form. NOTE: Use of non-form payloads will have this issue - adhoc command clients will need to have an expectation beforehand of what the command payload will be to properly load stanza plugins.
Diffstat (limited to 'sleekxmpp/plugins/xep_0050/adhoc.py')
-rw-r--r--sleekxmpp/plugins/xep_0050/adhoc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/plugins/xep_0050/adhoc.py b/sleekxmpp/plugins/xep_0050/adhoc.py
index 0509f8cf..7dbef31c 100644
--- a/sleekxmpp/plugins/xep_0050/adhoc.py
+++ b/sleekxmpp/plugins/xep_0050/adhoc.py
@@ -17,6 +17,7 @@ from sleekxmpp.xmlstream import register_stanza_plugin, JID
from sleekxmpp.plugins.base import base_plugin
from sleekxmpp.plugins.xep_0050 import stanza
from sleekxmpp.plugins.xep_0050 import Command
+from sleekxmpp.plugins.xep_0004 import Form
log = logging.getLogger(__name__)
@@ -92,7 +93,8 @@ class xep_0050(base_plugin):
StanzaPath('iq@type=set/command'),
self._handle_command))
- register_stanza_plugin(Iq, stanza.Command)
+ register_stanza_plugin(Iq, Command)
+ register_stanza_plugin(Command, Form)
self.xmpp.add_event_handler('command_execute',
self._handle_command_start,