diff --git a/plugins/Sourceforge.py b/plugins/Sf.py similarity index 98% rename from plugins/Sourceforge.py rename to plugins/Sf.py index a2b7040e9..817fe2e52 100644 --- a/plugins/Sourceforge.py +++ b/plugins/Sf.py @@ -53,7 +53,7 @@ def configure(onStart, afterConnect, advanced): # like to be run when the bot is started; append to afterConnect the # commands you would like to be run when the bot has finished connecting. from questions import expect, anything, something, yn - onStart.append('load Sourceforge') + onStart.append('load Sf') example = utils.wrapLines(""" <@jamessan|work> @bugs @@ -69,13 +69,13 @@ in 0.71, Bug #820961: dock icon doesn't show up with..., Bug #820879: Cannot con < supybot> jamessan|work: Improve CLI interface """) -class Sourceforge(callbacks.PrivmsgCommandAndRegexp): +class Sf(callbacks.PrivmsgCommandAndRegexp): """ Module for Sourceforge stuff. Currently contains commands to query a project's most recent bugs and rfes. """ threaded = True - regexps = sets.Set(['sourceforgeSnarfer']) + regexps = sets.Set(['sfSnarfer']) _infoRe = re.compile(r'(\d+)'\ '([^<]+)', re.I) @@ -242,7 +242,7 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): _sfTitle = re.compile(r'Detail:(\d+) - ([^<]+)', re.I) _linkType = re.compile(r'(\w+ \w+|\w+): Tracker Detailed View', re.I) - def sourceforgeSnarfer(self, irc, msg, match): + def sfSnarfer(self, irc, msg, match): r"https?://(?:www\.)?sourceforge\.net/tracker/(?:index\.php)?\?func=detail&aid=\d+&group_id=\d+&atid=\d+" if not self.snarfer: return @@ -270,6 +270,6 @@ class Sourceforge(callbacks.PrivmsgCommandAndRegexp): except Exception, e: irc.error(msg, debug.exnToString(e)) -Class = Sourceforge +Class = Sf # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/test/test_Sourceforge.py b/test/test_Sf.py similarity index 97% rename from test/test_Sourceforge.py rename to test/test_Sf.py index 71e81c3dc..22bb04259 100644 --- a/test/test_Sourceforge.py +++ b/test/test_Sf.py @@ -1,7 +1,7 @@ #!/usr/bin/env python ### -# Copyright (c) 2002, Jeremiah Fincher +# Copyright (c) 2003, James Vega # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -33,8 +33,8 @@ import re from test import * -class SourceforgeTest(PluginTestCase, PluginDocumentation): - plugins = ('Sourceforge',) +class SfTest(PluginTestCase, PluginDocumentation): + plugins = ('Sf',) def testBugs(self): self.assertNotError('bugs') self.assertResponse('bugs alkjfi83fa8', 'Can\'t find the "Bugs" link.')