From 4c1c5ff723b5022e934787803fdf1bfa6a71267b Mon Sep 17 00:00:00 2001 From: James Vega Date: Mon, 4 Oct 2004 18:45:20 +0000 Subject: [PATCH] One more fix for _getLnUrl --- plugins/ShrinkUrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ShrinkUrl.py b/plugins/ShrinkUrl.py index a3e26762f..16054df06 100644 --- a/plugins/ShrinkUrl.py +++ b/plugins/ShrinkUrl.py @@ -193,7 +193,7 @@ class ShrinkUrl(callbacks.PrivmsgCommandAndRegexp): def _getLnUrl(self, url): try: - return self.db.getLn(url) + return (self.db.getLn(url), '200') except KeyError: text = webutils.getUrl('http://ln-s.net/home/api.jsp?url=%s' % url) (code, lnurl) = text.split(None, 1)