diff options
author | Richard Darst <rkd@zgib.net> | 2009-08-06 21:30:53 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-08-06 21:30:53 (GMT) |
commit | a4317b04592452153d0035a9aef0f4bc32211b33 (patch) | |
tree | 9488b9bc0a9bc7e7d34c7fb3fb774064aad3d200 /plugin.py | |
parent | a1c9e22fc87f1f36131cbdc0c91eeef343c4f7d8 (diff) |
Create the recent_meetings variable if not already there
- This doesn't affect you if you have restart supybot, but allows
upgrading without past this version restarting. After that, it has no
effect.
darcs-hash:20090806213053-82ea9-98c4772cb63be9123b640e7c76fb6b645bdfd730.gz
Diffstat (limited to 'plugin.py')
-rw-r--r-- | plugin.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -49,11 +49,10 @@ if supybotconfig.is_supybotconfig_enabled(meeting.Config): # By doing this, we can not lose all of our meetings across plugin # reloads. But, of course, you can't change the source too # drastically if you do that! -try: - meeting_cache -except NameError: - meeting_cache = {} - recent_meetings = [ ] +try: meeting_cache +except NameError: meeting_cache = {} +try: recent_meetings +except NameError: recent_meetings = [ ] class MeetBot(callbacks.Plugin): |