Do not load settings which are not active (module not loaded)

Restart the bot, on heavy DB errors, with an 30 seconds delay (like: all connections terminated by DB, table_definition_cache exhausted)
Fix for channel prefixing (org <-> priv)
This commit is contained in:
2021-11-30 16:57:31 +01:00
parent c100b0ea76
commit bf6c1842d2
17 changed files with 57 additions and 29 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ class PublicChannelService(BaseModule):
return
if self.is_org_channel_id(packet.channel_id):
if self.setting_service.get_value("log_org") == "1" and packet.char_id == self.bot.get_char_id():
if self.setting_service.get_value("log_org") == "1":
char_name = self.character_service.get_char_name(packet.char_id)
if packet.extended_message:
message = packet.extended_message.get_message()
@@ -96,7 +96,7 @@ class PublicChannelService(BaseModule):
self.logger.log_chat(conn.id, "Org Channel", char_name, message)
self.event_service.fire_event(self.ORG_CHANNEL_MESSAGE_EVENT, packet)
elif packet.channel_id == self.ORG_MSG_CHANNEL_ID:
if self.setting_service.get_value("log_org") == "1" and packet.char_id == self.bot.get_char_id():
if self.setting_service.get_value("log_org") == "1":
char_name = self.character_service.get_char_name(packet.char_id)
if packet.extended_message:
message = packet.extended_message.get_message()