diff --git a/plugin.py b/plugin.py index 0384769..ee82c1a 100644 --- a/plugin.py +++ b/plugin.py @@ -68,7 +68,7 @@ class Weather(callbacks.Plugin): def __init__(self, irc): self.__parent = super(Weather, self) self.__parent.__init__(irc) - self.db = WeatherDB(dbfilename) + self.db = WeatherDB(conf.supybot.directories.data.dirize("Weather.db")) self.APIKEY = self.registryValue('apiKey') world.flushers.append(self.db.flush) @@ -584,8 +584,6 @@ class Weather(callbacks.Plugin): 'dewpoint':'', 'metric':''}), optional('text')]) -dbfilename = conf.supybot.directories.data.dirize("Weather.db") - Class = Weather # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=250: