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:
@@ -6,6 +6,7 @@ from core.chat_blob import ChatBlob
|
||||
from core.command_param_types import Const, Options, Character, Multiple, Any
|
||||
from core.decorators import instance, command
|
||||
from core.dict_object import DictObject
|
||||
from core.sender_obj import SenderObj
|
||||
from core.setting_service import SettingService
|
||||
from core.text import Text
|
||||
from core.translation_service import TranslationService
|
||||
@@ -135,7 +136,7 @@ class AltsController:
|
||||
for alt in alts:
|
||||
char_id = self.character_service.resolve_char_to_id(alt)
|
||||
if not char_id:
|
||||
notfound.append(alt)
|
||||
notfound.append(alt.name if type(alt) == SenderObj else alt)
|
||||
continue
|
||||
alt = DictObject({"char_id": char_id, "name": alt})
|
||||
if main.char_id == alt.char_id:
|
||||
|
||||
Reference in New Issue
Block a user