diff --git a/willie/bot.py b/willie/bot.py index 2412bb338a..64b06ba141 100644 --- a/willie/bot.py +++ b/willie/bot.py @@ -169,7 +169,7 @@ def bind(self, priority, regexp, func): # Function name is no longer used for anything, as far as I know, # but we're going to keep it around anyway. if not hasattr(func, 'name'): - func.name = __name__ + func.name = func.__name__ # At least for now, only account for the first command listed. if func.__doc__ and hasattr(func, 'commands') and func.commands[0]: if hasattr(func, 'example'):