fix filename of seen.db files

master
mutantmonkey 2013-01-02 19:48:06 +01:00
parent de05bb732e
commit 7622bd3376
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ f_seen.rule = (['seen'], r'(\S+)')
def f_note(self, origin, match, args): def f_note(self, origin, match, args):
def note(self, origin, match, args): def note(self, origin, match, args):
if not hasattr(self.bot, 'seen'): if not hasattr(self.bot, 'seen'):
fn = self.nick + '-' + self.config.host + '.seen.db' fn = self.nick + '-' + self.config.host + '.seen'
path = os.path.join(os.path.expanduser('~/.phenny'), fn) path = os.path.join(os.path.expanduser('~/.phenny'), fn)
self.bot.seen = shelve.open(path) self.bot.seen = shelve.open(path)
if origin.sender.startswith('#'): if origin.sender.startswith('#'):