Skip to content

Commit

Permalink
wikipedia: Fix url callback sometimes not registering
Browse files Browse the repository at this point in the history
Odd bug caused by not doing the registration right. This is why #761 is
needed.
  • Loading branch information
embolalia committed May 2, 2015
1 parent 1f1e815 commit 42fd092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion willie/modules/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup(bot):
regex = re.compile('([a-z]+).(wikipedia.org/wiki/)([^ ]+)')
if not bot.memory.contains('url_callbacks'):
bot.memory['url_callbacks'] = tools.WillieMemory()
bot.memory['url_callbacks'][regex] = mw_info
bot.memory['url_callbacks'][regex] = mw_info


def configure(config):
Expand Down

0 comments on commit 42fd092

Please sign in to comment.