Only fire when enabled

This commit is contained in:
Andrew 2023-09-28 17:47:19 -04:00
parent c1b5dbc090
commit 4bf77d2e7a

View File

@ -186,7 +186,7 @@ class ServerInstance:
webhook_provider = WebhookFactory.create_provider( webhook_provider = WebhookFactory.create_provider(
webhook["webhook_type"] webhook["webhook_type"]
) )
if res is not False: if res is not False and swebhook.enabled:
webhook_provider.send( webhook_provider.send(
server_name=args[0].name, server_name=args[0].name,
title=webhook["name"], title=webhook["name"],