Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/plugin.py b/plugin.py
index 255f0b1..4563cac 100644
--- a/plugin.py
+++ b/plugin.py
@@ -98,6 +98,25 @@ class MeatBot(callbacks.Plugin):
#M.save() # now do_endmeeting in M calls the save functions
del self.Meetings[Mkey]
+ def listmeetings(self, irc, msg, args):
+ """List all currently-active meetings."""
+ reply = ""
+ reply = ", ".join(str(x) for x in sorted(self.Meetings.keys()) )
+ if reply.strip() == '':
+ irc.reply("No currently active meetings.")
+ else:
+ irc.reply(reply)
+ listmeetings = wrap(listmeetings, ['private', 'owner'])
+
+ def savemeetings(self, irc, msg, args):
+ """Save all currently active meetings."""
+ numSaved = 0
+ for M in self.Meetings:
+ M.save()
+ irc.reply("Saved %d meetings."%numSaved)
+ savemeetings = wrap(savemeetings, ['owner'])
+
+
Class = MeatBot