From f1ca3f09147a0d7b4b0c596e7bd8568dce3a5f4e Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Fri, 28 Jun 2013 02:23:20 +0300 Subject: [PATCH] [url] Fix undefined variable. --- url.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/url.py b/url.py index bcd364d1e8..27c461ae30 100644 --- a/url.py +++ b/url.py @@ -11,7 +11,6 @@ from htmlentitydefs import name2codepoint from willie import web, tools from willie.module import commands, rule -import urllib2 import urlparse url_finder = None @@ -46,7 +45,7 @@ def setup(bot): global url_finder, exclusion_char if bot.config.has_option('url', 'exclude'): regexes = [re.compile(s) for s in - bot.config.url.get_list(exclude)] + bot.config.url.get_list(bot.config.exclude)] else: regexes = []