Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
poezio
poezio
Commits
0627a854
Commit
0627a854
authored
Jun 21, 2015
by
mathieui
Browse files
Fix #3051 (always add an id attribute to rawxml IQ set/get)
parent
ce538749
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/commands.py
View file @
0627a854
...
...
@@ -896,10 +896,11 @@ def command_rawxml(self, args):
stanza
=
args
try
:
stanza
=
StanzaBase
(
self
.
xmpp
,
xml
=
ET
.
fromstring
(
stanza
))
if
stanza
.
xml
.
tag
==
'iq'
and
\
stanza
.
xml
.
attrib
.
get
(
'type'
)
in
(
'get'
,
'set'
)
and
\
stanza
.
xml
.
attrib
.
get
(
'id'
):
if
stanza
.
xml
.
tag
==
'iq'
and
stanza
.
xml
.
attrib
.
get
(
'type'
)
in
(
'get'
,
'set'
):
iq_id
=
stanza
.
xml
.
attrib
.
get
(
'id'
)
if
not
iq_id
:
iq_id
=
self
.
xmpp
.
new_id
()
stanza
[
'id'
]
=
iq_id
def
iqfunc
(
iq
):
"handler for an iq reply"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment