don't crash when we get a wrong feature negotiation form
This commit is contained in:
parent
6d03af9dee
commit
25fb8c9a3a
|
@ -1276,6 +1276,9 @@ class MessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
|||
if not form:
|
||||
return
|
||||
|
||||
if not form.getField('FORM_TYPE'):
|
||||
return
|
||||
|
||||
if form['FORM_TYPE'] == 'urn:xmpp:ssn':
|
||||
self.session.handle_negotiation(form)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue