Changed ChannelTopic back to Topic.

This commit is contained in:
Jeremy Fincher 2003-10-19 15:48:44 +00:00
parent f57a523bb4
commit 1eb2a387eb
2 changed files with 5 additions and 5 deletions

View File

@ -49,7 +49,7 @@ import callbacks
example = utils.wrapLines("""
--- Topic for #sourcereview is If you notice *anything* that seems unintuitive about supybot, post it at http://tinyurl.com/nvct (jemfinch) || Supybot 0.72.1 released! (jemfinch) || If anyone is working on the .deb package for supybot please send me or jemfinch a note via the bot (Strike)
--- Topic for #sourcereview set by supybot at Mon Sep 29 15:56:10
<jemfinch> @list ChannelTopic
<jemfinch> @list Topic
<supybot> jemfinch: addtopic, changetopic, removetopic, shuffletopic, topic
<jemfinch> @removetopic 2
--- supybot has changed the topic to: If you notice *anything* that seems unintuitive about supybot, post it at http://tinyurl.com/nvct (jemfinch) || If anyone is working on the .deb package for supybot please send me or jemfinch a note via the bot (Strike)
@ -63,7 +63,7 @@ example = utils.wrapLines("""
--- supybot has changed the topic to: If anyone is working on the .deb package for supybot please send me or jemfinch a note via the bot (Strike) || If you notice *anything* that seems unintuitive about supybot, post it at http://tinyurl.com/nvct (jemfinch) || Tenative release for Supybot 0.73.0 is set for Sunday (jemfinch)
""")
class ChannelTopic(callbacks.Privmsg):
class Topic(callbacks.Privmsg):
topicSeparator = ' || '
topicFormatter = '%s (%s)'
topicUnformatter = re.compile('(.*) \((\S+)\)')
@ -220,7 +220,7 @@ class ChannelTopic(callbacks.Privmsg):
removetopic = privmsgs.checkChannelCapability(removetopic, 'topic')
Class = ChannelTopic
Class = Topic
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:

View File

@ -31,8 +31,8 @@
from test import *
class ChannelTopicTestCase(PluginTestCase, PluginDocumentation):
plugins = ('ChannelTopic', 'AdminCommands')
class TopicTestCase(PluginTestCase, PluginDocumentation):
plugins = ('Topic', 'AdminCommands')
def testAddtopic(self):
_ = self.getMsg('join #foo')
_ = self.getMsg(' ') # Get the WHO.