From ed6e405f8845b810daf442668ba6aca56057bb94 Mon Sep 17 00:00:00 2001 From: z411 Date: Sat, 30 Mar 2019 23:18:20 -0300 Subject: Deshabilitar Discord hook si no hay URL configurado --- cgi/post.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cgi') diff --git a/cgi/post.py b/cgi/post.py index d129715..9d6f9c2 100644 --- a/cgi/post.py +++ b/cgi/post.py @@ -1230,6 +1230,9 @@ def magic_ball(): return string def discord_hook(post, url): + if not Settings.DISCORD_HOOK_URL: + return + import urllib2 import json -- cgit v1.2.1-18-gbd029