Upgraded the Relay module - it supports multiple relays now.

This commit is contained in:
2021-08-28 21:02:23 +02:00
parent c04f76c0db
commit 012e16dd90
7 changed files with 409 additions and 158 deletions
@@ -8,12 +8,4 @@ class CustomCommandService(CommandService):
super().inject(registry)
def handle_unknown_command(self, command_str: str, command_args, channel, sender, reply):
if command_str.startswith('agcr'):
return
else:
self.relay_hub_service.send_message("access_denied_logger", sender,
f"[UNKNOWN] {sender.name}: {command_str} {command_args}",
f"[UNKNOWN] {sender.name}: {command_str} {command_args}")
if sender.access_level["label"] != "all":
self.bot.send_mass_message(sender.char_id,
self.getresp("global", "unknown_command", {"cmd": command_str}))
pass