about summary refs log tree commit diff stats
path: root/src/xmpp
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 16:37:20 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 16:37:20 +0200
commitf2b415079a9bf1a8179345cd9ac58977b7ac45a1 (patch)
treece21391722f2e393ebf36828fd6f2685117f256c /src/xmpp
parent1f50647865bf249d15dd864d563f02115a6d3088 (diff)
downloadprofani-tty-f2b415079a9bf1a8179345cd9ac58977b7ac45a1.tar.gz
message.c: Add XEP information
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/message.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index ffcbe47d..57ee2cfd 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -128,31 +128,36 @@ _message_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const stanza, void *con
         _handle_error(stanza);
     }
 
-    // if muc
+    // XEP-0045: Multi-User Chat
     if (g_strcmp0(type, STANZA_TYPE_GROUPCHAT) == 0) {
         _handle_groupchat(stanza);
     }
 
+    // XEP-0045: Multi-User Chat
     xmpp_stanza_t *mucuser = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_MUC_USER);
     if (mucuser) {
         _handle_muc_user(stanza);
     }
 
+    // XEP-0249: Direct MUC Invitations
     xmpp_stanza_t *conference = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CONFERENCE);
     if (conference) {
         _handle_conference(stanza);
     }
 
+    // XEP-0158: CAPTCHA Forms
     xmpp_stanza_t *captcha = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_CAPTCHA);
     if (captcha) {
         _handle_captcha(stanza);
     }
 
+    // XEP-0184: Message Delivery Receipts
     xmpp_stanza_t *receipts = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_RECEIPTS);
     if (receipts) {
         _handle_receipt_received(stanza);
     }
 
+    // XEP-0060: Publish-Subscribe
     xmpp_stanza_t *event = xmpp_stanza_get_child_by_ns(stanza, STANZA_NS_PUBSUB_EVENT);
     if (event) {
         xmpp_stanza_t *child = xmpp_stanza_get_children(event);