From 93d7b0f8e0cc0a88f31259224c4e5a5f311ea052 Mon Sep 17 00:00:00 2001 From: LDA Date: Tue, 6 Aug 2024 22:21:51 +0200 Subject: [PATCH] [MOD] Make command list a .x.h file --- src/XMPPThread/Stanzas/Presence.c | 4 +++- src/include/XMPPCommand.h | 2 +- src/include/{XMPPCommands.x => XMPPCommands.x.h} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename src/include/{XMPPCommands.x => XMPPCommands.x.h} (100%) diff --git a/src/XMPPThread/Stanzas/Presence.c b/src/XMPPThread/Stanzas/Presence.c index 5d08497..1a8e298 100644 --- a/src/XMPPThread/Stanzas/Presence.c +++ b/src/XMPPThread/Stanzas/Presence.c @@ -127,7 +127,9 @@ PresenceStanza(ParseeData *args, XMLElement *stanza) char *muc = ParseeTrimJID(HashMapGet(stanza->attrs, "from")); char *usr = HashMapGet(stanza->attrs, "to"); - /* Ask for voice */ + /* Ask for voice in a visitor self-presence. We do not notify + * the user, as an error MUST occur, which is handled and + * logged out. */ XMPPRequestVoice(args->jabber, usr, muc); Free(muc); diff --git a/src/include/XMPPCommand.h b/src/include/XMPPCommand.h index 1f42b08..2680a64 100644 --- a/src/include/XMPPCommand.h +++ b/src/include/XMPPCommand.h @@ -103,7 +103,7 @@ extern bool XMPPManageCommand(XMPPCommandManager *m, XMLElement *stanza, ParseeD extern void \ Form##f(XMPPCommandManager *, XMPPCommand *, char *); \ -#include "XMPPCommands.x" +#include "XMPPCommands.x.h" #undef XMPP_COMMAND #endif diff --git a/src/include/XMPPCommands.x b/src/include/XMPPCommands.x.h similarity index 100% rename from src/include/XMPPCommands.x rename to src/include/XMPPCommands.x.h