From a4317b04592452153d0035a9aef0f4bc32211b33 Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Thu, 06 Aug 2009 21:30:53 +0000 Subject: 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 --- (limited to 'plugin.py') 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): -- cgit v0.9.1