-
e-snail
I'm trying to understand how responding to MUC invites works in slixmpp. When I set up an echo bot from the example and send it a MUC invite from Conversations, the log says the stanza triggers the `message` event, but shouldn't it trigger a `groupchat_invite` event? What am I missing?
-
e-snail
b✎ -
e-snail
. ✏
-
lovetox
Is there such a thing in slix ?
-
nicoco_
yes there is and looking at the docs/sources [1], i think slix should trigger both a "message" event (which is very generic and triggered even if the message has no body) and "groupchat_direct_invite" event. e-snail, did you "register" the slixmpp plugin, eg `xmpp.register_plugin('xep_0249')`? [1] https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0249/invite.html#XEP_0249
-
lovetox
but this is only a direct invite
-
lovetox
there are also mediated invites
-
nicoco_
you're right, lovetox. I think mediated invites should trigger `groupchat_invite` event then, indeed, see `def _handle_groupchat_invite` in https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0045/muc.html#XEP_0045✎ -
nicoco_
you're right, lovetox. I think mediated invites should trigger the `groupchat_invite` event then, indeed, see `def _handle_groupchat_invite` in https://slixmpp.readthedocs.io/en/latest/_modules/slixmpp/plugins/xep_0045/muc.html#XEP_0045 ✏