[MOD] Make functions for creating a "killer stanza"

Cleaning up the mop...
This commit is contained in:
LDA 2024-06-19 14:41:04 +02:00
commit e089cea02a
4 changed files with 46 additions and 16 deletions

View file

@ -35,8 +35,7 @@ ParseeXMPPThread(void *argp)
if (StrEquals(stanza->name, "message"))
{
size_t i;
if (StrEquals(HashMapGet(stanza->attrs, "from"),
HashMapGet(stanza->attrs, "to")))
if (XMPPIsKiller(stanza))
{
/* There's not a lot of scenarios where we loopback */
Log(LOG_INFO, "Dropping thread...");