Give EventHooks their event name .lower()

This commit is contained in:
jesopo 2018-08-29 15:51:51 +01:00
parent 669aa32c31
commit 745141cb6d

View file

@ -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])