xmlstream: Fix registration

This iq nonza wasn’t marked as allowed to be sent on an unauthenticated
stream.
This commit is contained in:
Emmanuel Gil Peyrot 2023-05-01 19:50:26 +02:00
parent 209554e63f
commit db1fc5fbc5

View file

@ -1339,6 +1339,8 @@ class XMLStream(asyncio.BaseProtocol):
passthrough = True
elif data.get_plugin('session', check=True):
passthrough = True
elif data.get_plugin('register', check=True):
passthrough = True
elif isinstance(data, Handshake):
passthrough = True