diff --git a/ChangeLog b/ChangeLog index 75fb8a3e0..867cea907 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,5 @@ + * Fixed Http.freshmeat for projects with a space in their names. + * Added Karma.most for determining various "mosts" in the Karma database. diff --git a/plugins/Http.py b/plugins/Http.py index 2977b144d..82053093d 100644 --- a/plugins/Http.py +++ b/plugins/Http.py @@ -87,6 +87,7 @@ class Http(callbacks.Privmsg): Returns Freshmeat data about a given project. """ project = privmsgs.getArgs(args) + project = ''.join(project.split()) url = 'http://www.freshmeat.net/projects-xml/%s' % project try: text = webutils.getUrl(url) diff --git a/test/test_Http.py b/test/test_Http.py index 6b5153af7..539d43548 100644 --- a/test/test_Http.py +++ b/test/test_Http.py @@ -38,6 +38,7 @@ class HttpTest(PluginTestCase, PluginDocumentation): def testFreshmeat(self): self.assertNotError('freshmeat supybot') + self.assertNotError('freshmeat My Classifieds') self.assertNotRegexp('freshmeat supybot', 'DOM Element') def testTitle(self):