ignore wrong stanza. Fixes #8205

This commit is contained in:
Yann Leboulanger 2016-02-20 21:28:34 +01:00
parent 766bb508e3
commit 7a4161c759
1 changed files with 2 additions and 0 deletions

View File

@ -1243,6 +1243,8 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
feature = self.stanza.getTag(name='feature',
namespace=nbxmpp.NS_FEATURE)
form = nbxmpp.DataForm(node=feature.getTag('x'))
if not form:
return
if form['FORM_TYPE'] == 'urn:xmpp:ssn':
self.session.handle_negotiation(form)