XMPP: add proper cleanup; add basic support for body messages
[citadel.git] / citadel / modules / xmpp / token.def
index 6799c8dc2b52a90737fdf8a0cfc9616cc2165623..26345c6683b27252a5c5a709469c435f543aee7a 100644 (file)
@@ -18,3 +18,15 @@ TOKEN(piq,
              STRPROP(piq, from);
              STRPROP(piq, to);
       })
+
+#define NAMESPACE_message "jabber:client"
+TOKEN(message,
+       {
+               STRPROP(message, to);
+               STRPROP(message, type);
+               STRPROP(message, id);
+               PAYLOAD(message, body);
+       })
+
+
+// <message type='chat' id='purplef5a7ed34' to='testuser@blarg.potzblitz.outgesourced.org'><active xmlns='http://jabber.org/protocol/chatstates'/><body>gci</body></message>