diff options
author | Richard Darst <rkd@zgib.net> | 2009-06-08 21:07:50 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-06-08 21:07:50 (GMT) |
commit | bccbc5ee1544044eedbb24544ececba9cc0e6c76 (patch) | |
tree | 366f6387986b9b9aac4a7a07c14ef9ed577ccfe3 | |
parent | 30cb833961f70cfd8e9060216da2894f834cc925 (diff) |
Fix bug where non-chairs can end the meeting with no saving!
darcs-hash:20090608210750-82ea9-47c591f400736aaaa5bbb4c32160e1de4f34d21f.gz
-rw-r--r-- | meeting.py | 2 | ||||
-rw-r--r-- | plugin.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -126,6 +126,7 @@ class MeetingCommands(object): (time.asctime(time_), timeZone, MeetBotInfoURL)) self.reply("Minutes: "+self.minutesFilename(url=True)) self.reply("Log: "+self.logFilename(url=True)) + self._meetingIsOver = True def do_topic(self, nick, line, **kwargs): """Set a new topic in the channel.""" if not self.isChair(nick): return @@ -249,6 +250,7 @@ class Meeting(MeetingCommands, object): self.chairs = { } self._writeRawLog = writeRawLog self._meetingTopic = None + self._meetingIsOver = False if filename: self._filename = filename @@ -95,7 +95,7 @@ class MeetBot(callbacks.Plugin): # Add line to our meeting buffer. M.addline(nick, payload) # End meeting if requested: - if payload[:11] == '#endmeeting': + if M._meetingIsOver: #M.save() # now do_endmeeting in M calls the save functions del self.Meetings[Mkey] |