From 5742fbfd7fbabda35f88a68e66cd495f69235f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Fri, 2 Jan 2026 20:26:04 +0100 Subject: [PATCH] [anti_spam] Convert jid to string --- anti_spam/modules/anti_spam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anti_spam/modules/anti_spam.py b/anti_spam/modules/anti_spam.py index 163eb07..7a84b80 100644 --- a/anti_spam/modules/anti_spam.py +++ b/anti_spam/modules/anti_spam.py @@ -147,7 +147,7 @@ class AntiSpam(BaseModule): def _send_question(self, properties: MessageProperties, jid: JID) -> None: message = "Anti Spam Question: %s" % self._config["msgtxt_question"] - stanza = Message(to=jid, body=message, typ=properties.type.value) + stanza = Message(to=str(jid), body=message, typ=properties.type.value) self._client.connection.send_stanza(stanza) self._log.info("Anti spam question sent to %s", jid)