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-07-12 23:54:08 (GMT)
committer Richard Darst <rkd@zgib.net>2009-07-12 23:54:08 (GMT)
commit647f7a996b2e2da48bd713373b76eb0f9c19528f (patch)
tree988de8f4956319660e25ed7ad6c35d036afae918 /meeting.py
parentcd5df6ca774cf61c5da50227da36aeccd901914f (diff)
Fix oldtopic encoding issue0_1_2
- If the oldtopic had non-ascii characters in it, it would have failed to restore it. This fixes that. - Some other rearrangement to support this. darcs-hash:20090712235408-82ea9-da0844509fef51838e773898f02b7ef704005e40.gz
Diffstat (limited to 'meeting.py')
-rw-r--r--meeting.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/meeting.py b/meeting.py
index 2ec7349..88f7705 100644
--- a/meeting.py
+++ b/meeting.py
@@ -366,12 +366,22 @@ class Meeting(MeetingCommands, object):
_lurk = False
_restrictlogs = False
def __init__(self, channel, owner, oldtopic=None,
- filename=None, writeRawLog=False):
+ filename=None, writeRawLog=False,
+ setTopic=None, sendReply=None, getRegistryValue=None):
self.config = Config(self)
+ if getRegistryValue is not None:
+ self._registryValue = getRegistryValue
+ if sendReply is not None:
+ self._sendReply = sendReply
+ if setTopic is not None:
+ self._setTopic = setTopic
self.owner = owner
self.channel = channel
self.currenttopic = ""
- self.oldtopic = oldtopic
+ if oldtopic:
+ self.oldtopic = self.config.dec(oldtopic)
+ else:
+ self.oldtopic = None
self.lines = [ ]
self.minutes = [ ]
self.attendees = { }