Skip to content

Commit

Permalink
[core, reload] Sove long-standing error where function names in diffe…
Browse files Browse the repository at this point in the history
…rent modules could conflict.

Our issue number for this is sopel-irc#258. myano also has it in his as sopel-irc#45.
  • Loading branch information
embolalia committed May 19, 2013
1 parent 9646993 commit e9d9ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def f_reload(willie, trigger):
if name == willie.config.owner:
return willie.reply('What?')

if (not name) or (name == '*') or (name == 'ALL THE THINGS'):
willie.variables = None
if (not name) or (name == '*') or (name.upper() == 'ALL THE THINGS'):
willie.callables = None
willie.commands = None
willie.setup()
return willie.reply('done')
Expand Down

0 comments on commit e9d9ccc

Please sign in to comment.