Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-08-14 21:26:12 (GMT)
committer Richard Darst <rkd@zgib.net>2009-08-14 21:26:12 (GMT)
commitd2732e7dcaeed2c2f5816109f007c70becae5125 (patch)
tree648c9f2510b50bda30b8efb37394d9ba31413b95
parentfb8b0a902e95a4d77dc84ba316d0deff6106d0f6 (diff)
Add meetbot version to end meeting message
darcs-hash:20090814212612-82ea9-7e8b84dd130c820423d431fec681201073547c06.gz
-rw-r--r--meeting.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/meeting.py b/meeting.py
index cb5c8af..e376169 100644
--- a/meeting.py
+++ b/meeting.py
@@ -89,7 +89,8 @@ class Config(object):
"Useful Commands: #action #agreed #halp #info #idea #link "
"#topic.")
endMeetingMessage = ("Meeting ended %(endtime)s %(timeZone)s. "
- "Information about MeetBot at %(MeetBotInfoURL)s .\n"
+ "Information about MeetBot at %(MeetBotInfoURL)s . "
+ "(v %(__version__)s)\n"
"Minutes: %(urlBasename)s.html\n"
"Minutes (text): %(urlBasename)s.txt\n"
"Log: %(urlBasename)s.log.html")
@@ -240,7 +241,9 @@ class MeetingCommands(object):
timeZone = self.config.timeZone
chair = self.owner
MeetBotInfoURL = self.config.MeetBotInfoURL
- message = self.config.startMeetingMessage%locals()
+ repl = locals()
+ repl['__version__'] = __version__
+ message = self.config.startMeetingMessage%repl
for messageline in message.split('\n'):
self.reply(messageline)
if line.strip():
@@ -256,7 +259,9 @@ class MeetingCommands(object):
timeZone = self.config.timeZone
urlBasename = self.config.filename(url=True)
MeetBotInfoURL = self.config.MeetBotInfoURL
- message = self.config.endMeetingMessage%locals()
+ repl = locals()
+ repl['__version__'] = __version__
+ message = self.config.endMeetingMessage%repl
for messageline in message.split('\n'):
self.reply(messageline)
self._meetingIsOver = True