Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorRichard Darst <rkd@zgib.net>2009-08-06 21:30:53 (GMT)
committer Richard Darst <rkd@zgib.net>2009-08-06 21:30:53 (GMT)
commita4317b04592452153d0035a9aef0f4bc32211b33 (patch)
tree9488b9bc0a9bc7e7d34c7fb3fb774064aad3d200 /plugin.py
parenta1c9e22fc87f1f36131cbdc0c91eeef343c4f7d8 (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.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugin.py b/plugin.py
index 88d418d..0d0d2d5 100644
--- a/plugin.py
+++ b/plugin.py
@@ -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):