From aefc0bb53440966c055234544a989553ebeb8574 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Mon, 10 Jul 2017 06:36:17 +0200 Subject: [PATCH] event: don't forward d_init if None --- nemubot/event/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nemubot/event/__init__.py b/nemubot/event/__init__.py index c45081c..981cf4b 100644 --- a/nemubot/event/__init__.py +++ b/nemubot/event/__init__.py @@ -134,5 +134,7 @@ class ModuleEvent: self.call(d_init) elif isinstance(self.call_data, dict): self.call(d_init, **self.call_data) + elif d_init is None: + self.call(self.call_data) else: self.call(d_init, self.call_data)