diff --git a/nemubot/event/__init__.py b/nemubot/event/__init__.py index 2b3ed6b..c471b2e 100644 --- a/nemubot/event/__init__.py +++ b/nemubot/event/__init__.py @@ -138,9 +138,12 @@ class ModuleEvent: self.call() else: self.call(d_init) + elif d_init is None: + if isinstance(self.call_data, dict): + self.call(**self.call_data) + else: + self.call(self.call_data) 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)