From 1bd48bfad5e8d570e7178b7f77d0f32af6399bdf Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 21 Oct 2003 04:22:54 +0000 Subject: [PATCH] Changed names to be more generic/consistent. --- plugins/RSS.py | 6 +++--- test/test_RSS.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index fa5f16e3c..a8c66095a 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -59,7 +59,7 @@ def configure(onStart, afterConnect, advanced): prompt = 'Would you like to add another RSS feed?' name = something('What\'s the name of the website?') url = something('What\'s the URL of the RSS feed?') - onStart.append('alias %s "rsstitles %s"' % (name, url)) + onStart.append('alias %s "rss %s"' % (name, url)) onStart.append('freeze %s' % name) example = utils.wrapLines(""" @@ -78,7 +78,7 @@ class RSS(callbacks.Privmsg): self.lastRequest = {} self.cachedFeeds = {} - def rsstitles(self, irc, msg, args): + def rss(self, irc, msg, args): """ Gets the title components of the given RSS feed. @@ -99,7 +99,7 @@ class RSS(callbacks.Privmsg): return irc.reply(msg, ' :: '.join(headlines)) - def rssinfo(self, irc, msg, args): + def info(self, irc, msg, args): """ Returns information from the given RSS feed, namely the title, diff --git a/test/test_RSS.py b/test/test_RSS.py index 294932c6f..197f75174 100644 --- a/test/test_RSS.py +++ b/test/test_RSS.py @@ -34,12 +34,12 @@ from test import * class RSSTestCase(PluginTestCase, PluginDocumentation): plugins = ('RSS',) def testRssinfo(self): - self.assertNotError('rssinfo http://slashdot.org/slashdot.rss') - self.assertNotRegexp('rssinfo http://slashdot.org/slashdot.rss', + self.assertNotError('rss info http://slashdot.org/slashdot.rss') + self.assertNotRegexp('rss info http://slashdot.org/slashdot.rss', '-1 years') def testRsstitles(self): - self.assertNotError('rsstitles http://slashdot.org/slashdot.rss') + self.assertNotError('rss http://slashdot.org/slashdot.rss') # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: