Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaSpeen committed Aug 17, 2023
1 parent 59c113a commit c6fba31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modules/EventsSystem/events_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def call_event(self, event_name, *args, **kwargs):
return funcs_data

def call_lua_event(self, event_name, *args):
self.log.debug(f"Calling lua event: '{event_name} ({args})'")
self.log.debug(f"Calling lua event: '{event_name}{args}'")
funcs_data = []
if event_name in self.__lua_events.keys():
for data in self.__lua_events[event_name]:
Expand Down
5 changes: 3 additions & 2 deletions src/modules/PluginsLoader/lua_plugins_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ def CancelEventTimer(self, event_name: str):
del self._event_timers[event_name]

def TriggerLocalEvent(self, event_name, *args):
self.log.debug("request TriggerLocalEvent()")
self.log.debug(f"Calling local lua event: '{event_name}{args}'")
if event_name != "getTable":
self.log.debug("request TriggerLocalEvent()")
self.log.debug(f"Calling local lua event: '{event_name}{args}'")
funcs_data = []
if event_name in self._local_events.keys():
for func_name in self._local_events[event_name]:
Expand Down

0 comments on commit c6fba31

Please sign in to comment.