xmpp: Fix typo

This commit is contained in:
PapaTutuWawa 2021-09-16 18:34:17 +02:00
parent 3bafcb916c
commit 704ee770d4

View File

@ -194,10 +194,10 @@ class BridgeComponent(ComponentXMPP):
str(vcard))) str(vcard)))
# Aquire a webhook # Aquire a webhook
wh = "" wh = None
for webhook in await dchannel.webhooks(): for webhook in await dchannel.webhooks():
if webhook.name == "discord-xmpp-bridge": if webhook.name == "discord-xmpp-bridge":
wh webhook wh = webhook
break break
if not wh: if not wh:
wh = await dchannel.create_webhook(name="discord-xmpp-bridge", wh = await dchannel.create_webhook(name="discord-xmpp-bridge",