From 45ebebf51e9ca00bab988fbc5abbf668cf4199ed Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Sun, 19 May 2013 15:09:57 -0400 Subject: [PATCH] [core] undo a minor mistake from a6d44eb --- willie/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'):