From 97da6173f9a089d3ed430aa1d930d005ab386a67 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sun, 12 May 2013 22:41:23 +0200 Subject: [PATCH] Some people add random text instead of real sauce links. --- src/Miscellaneous/Sauce.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Miscellaneous/Sauce.coffee b/src/Miscellaneous/Sauce.coffee index 82d39d86a..7c4892862 100644 --- a/src/Miscellaneous/Sauce.coffee +++ b/src/Miscellaneous/Sauce.coffee @@ -5,7 +5,11 @@ Sauce = links = [] for link in Conf['sauces'].split '\n' continue if link[0] is '#' - links.push @createSauceLink link.trim() + try + links.push @createSauceLink link.trim() + catch err + # Don't add random text plz. + continue return unless links.length @links = links @link = $.el 'a', target: '_blank'