Skip to content

Commit

Permalink
Merge pull request #9 from dgw/use-the-right-memory
Browse files Browse the repository at this point in the history
Use the right kind of memory object
  • Loading branch information
dgw authored Nov 8, 2023
2 parents d912783 + 031c971 commit d69e73e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel_spongemock/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def setup(bot):
bot.config.define_section('spongemock', SpongeMockSection)

if 'mock_lines' not in bot.memory:
bot.memory['mock_lines'] = tools.SopelMemory()
bot.memory['mock_lines'] = tools.SopelIdentifierMemory()


def shutdown(bot):
Expand All @@ -55,7 +55,7 @@ def shutdown(bot):
@plugin.unblockable
def cache_lines(bot, trigger):
if trigger.sender not in bot.memory['mock_lines']:
bot.memory['mock_lines'][trigger.sender] = tools.SopelMemory()
bot.memory['mock_lines'][trigger.sender] = tools.SopelIdentifierMemory()

line = trigger.group()
# don't store /me commands, or obvious bot commands
Expand Down

0 comments on commit d69e73e

Please sign in to comment.