From 6a7981aac0aa9f7eea15cdf4cd382fb32b0ce477 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 16 Apr 2004 16:31:17 +0000 Subject: [PATCH] A little refactoring and make sure Sourceforge.tracker reports the URL since bug/rfe used to --- plugins/Sourceforge.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/Sourceforge.py b/plugins/Sourceforge.py index dc7641ddc..b0144fa2c 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sourceforge.py @@ -175,16 +175,15 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): linktype = m.group(1) linktype = utils.depluralize(linktype) (num, desc) = n.groups() - head = '%s #%s:' % (ircutils.bold(linktype), num) - resp.append(desc) + head = '%s #%s: %s' % (ircutils.bold(linktype), num, desc) + resp.append(head) else: return None for r in self._regexps: m = r.search(s) if m: resp.append('%s: %s' % self._bold(m.groups())) - return '%s #%s: %s' % (ircutils.bold(linktype), ircutils.bold(num), - '; '.join(resp)) + return '; '.join(resp) except webutils.WebError, e: raise TrackerError, str(e) @@ -201,7 +200,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): if resp is None: irc.error('Invalid Tracker page snarfed: %s' % url) else: - irc.reply(resp) + irc.reply('%s <%s>' % (resp, url)) except TrackerError, e: irc.error(str(e))