--- a/util/adminstream.lua Wed Jun 03 22:21:17 2020 +0100
+++ b/util/adminstream.lua Wed Jun 03 22:26:48 2020 +0100
@@ -271,7 +271,9 @@
client.thread = runner(function (stanza)
if st.is_stanza(stanza) then
- client.events.fire_event("received", stanza);
+ if not client.events.fire_event("received", stanza) and not stanza.attr.xmlns then
+ client.events.fire_event("received/"..stanza.name, stanza);
+ end
elseif stanza.stream == "opened" then
stream_callbacks._streamopened(client, stanza.attr);
client.events.fire_event("connected");