From 745141cb6da3e17bc1f5ee6d95d7418754ea5e29 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 29 Aug 2018 15:51:51 +0100 Subject: [PATCH] Give EventHooks their event name .lower() --- EventManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventManager.py b/EventManager.py index c4504358..abb0a454 100644 --- a/EventManager.py +++ b/EventManager.py @@ -156,7 +156,7 @@ class EventHook(object): child_name_lower = child_name.lower() if not child_name_lower in self._children: self._children[child_name_lower] = EventHook(self.bot, - child_name, self) + child_name_lower, self) if self._child_notify: self._child_notify(self, self._children[ child_name_lower])