Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/meeting.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-06-13 20:35:08 (GMT)
committer Richard Darst <rkd@zgib.net>2009-06-13 20:35:08 (GMT)
commit704abf655c6cf0d049514046ee15abaadf4ac10a (patch)
treef62890654757c4004e75228a07bf04350dd30e9f /meeting.py
parent629c460348590919852b2f98ed6f470d8a0959bd (diff)
Change the #chairs command to make it less verbose when responding
darcs-hash:20090613203508-82ea9-db67354d8aa280ce21ac6e22a19153b9974e10fd.gz
Diffstat (limited to 'meeting.py')
-rw-r--r--meeting.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/meeting.py b/meeting.py
index de1d1d4..090f0c8 100644
--- a/meeting.py
+++ b/meeting.py
@@ -162,7 +162,9 @@ class MeetingCommands(object):
if chair not in self.chairs:
self.addnick(chair, lines=0)
self.chairs.setdefault(chair, True)
- self.reply("Chair added: %s"%chair)
+ chairs = dict(self.chairs) # make a copy
+ chairs.setdefault(self.owner, True)
+ self.reply("Current chairs: %s"%(" ".join(sorted(chairs.keys()))))
def do_unchair(self, nick, line, **kwargs):
"""Remove a chair to the meeting (founder can not be removed)."""
if not self.isChair(nick): return
@@ -170,7 +172,9 @@ class MeetingCommands(object):
chair = html(chair.strip())
if chair in self.chairs:
del self.chairs[chair]
- self.reply("Chair removed: %s"%chair)
+ chairs = dict(self.chairs) # make a copy
+ chairs.setdefault(self.owner, True)
+ self.reply("Current chairs: %s"%(" ".join(sorted(chairs.keys()))))
def do_undo(self, nick, **kwargs):
"""Remove the last item from the minutes."""
if not self.isChair(nick): return