Change supybot plugin name back to MeetBot
Ignore-this: 393e3be2b8c6643d7830c36f5f274421 - Leaving it at MeetBot preserves compatibility with old configuration and is still descriptive enough. darcs-hash:20101210052334-82ea9-4482b8dcc7b945f5d6e4246f1300587efba0f1ec.gz
This commit is contained in:
parent
6f1cd7680e
commit
1e84fdf2cc
@ -55,12 +55,12 @@ try: recent_meetings
|
|||||||
except NameError: recent_meetings = [ ]
|
except NameError: recent_meetings = [ ]
|
||||||
|
|
||||||
|
|
||||||
class Meeting(callbacks.Plugin):
|
class MeetBot(callbacks.Plugin):
|
||||||
"""Add the help for "@plugin help Meeting" here
|
"""Add the help for "@plugin help MeetBot" here
|
||||||
This should describe *how* to use this plugin."""
|
This should describe *how* to use this plugin."""
|
||||||
|
|
||||||
def __init__(self, irc):
|
def __init__(self, irc):
|
||||||
self.__parent = super(Meeting, self)
|
self.__parent = super(MeetBot, self)
|
||||||
self.__parent.__init__(irc)
|
self.__parent.__init__(irc)
|
||||||
|
|
||||||
# Instead of using real supybot commands, I just listen to ALL
|
# Instead of using real supybot commands, I just listen to ALL
|
||||||
@ -294,9 +294,9 @@ class Meeting(callbacks.Plugin):
|
|||||||
# command (it does check more than I'd like). Heavy Wizardry.
|
# command (it does check more than I'd like). Heavy Wizardry.
|
||||||
instancemethod = type(self.__getattr__)
|
instancemethod = type(self.__getattr__)
|
||||||
wrapped_function = wrap(wrapped_function, [optional('text', '')])
|
wrapped_function = wrap(wrapped_function, [optional('text', '')])
|
||||||
return instancemethod(wrapped_function, self, Meeting)
|
return instancemethod(wrapped_function, self, MeetBot)
|
||||||
|
|
||||||
Class = Meeting
|
Class = MeetBot
|
||||||
|
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
|
@ -39,7 +39,7 @@ import ircmeeting.meeting as meeting
|
|||||||
import ircmeeting.writers as writers
|
import ircmeeting.writers as writers
|
||||||
|
|
||||||
# The plugin group for configuration
|
# The plugin group for configuration
|
||||||
MeetBotConfigGroup = conf.registerPlugin('Meeting')
|
MeetBotConfigGroup = conf.registerPlugin('MeetBot')
|
||||||
|
|
||||||
class WriterMap(registry.String):
|
class WriterMap(registry.String):
|
||||||
"""List of output formats to write. This is a space-separated
|
"""List of output formats to write. This is a space-separated
|
@ -33,9 +33,9 @@ from supybot.test import *
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
class MeetingTestCase(ChannelPluginTestCase):
|
class MeetBotTestCase(ChannelPluginTestCase):
|
||||||
channel = "#testchannel"
|
channel = "#testchannel"
|
||||||
plugins = ('Meeting',)
|
plugins = ('MeetBot',)
|
||||||
|
|
||||||
def testRunMeeting(self):
|
def testRunMeeting(self):
|
||||||
test_script = file(os.path.join("test-script-2.log.txt"))
|
test_script = file(os.path.join("test-script-2.log.txt"))
|
Loading…
Reference in New Issue
Block a user