aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
Diffstat (limited to 'cgi')
-rw-r--r--cgi/post.py3
1 files changed, 3 insertions, 0 deletions
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