AddJournalIgnore
Adds a string to the journal ignore list. Incoming messages that contain Str as a substring will not be displayed in the journal.
The match is case-insensitive and works on partial strings — the message does not need to match Str exactly, only contain it.
Note: This method has no effect on connected (attached) clients — it only applies to Stealth’s internal journal.
Добавляет строку в список игнорируемых сообщений журнала. Входящие сообщения, содержащие Str как подстроку, не будут отображаться в журнале.
Сравнение регистронезависимое и работает по частичному совпадению — сообщение не должно полностью совпадать со Str, достаточно содержать его.
Примечание: Метод не действует на подключённых (attached) клиентов — применяется только к внутреннему журналу Stealth.
procedure AddJournalIgnore(Str: String);
Parameters:
- Str — substring to match against incoming journal messages.
def AddJournalIgnore(Str: str) -> None: ...
begin
// Ignore some messages for journal flood prevention
AddJournalIgnore('for mercenary points');
AddJournalIgnore('pour the completed potion into a bottle');
AddJournalIgnore('toss the failed mixture from the mortar');
AddJournalIgnore(' в ярмарочной лотерее!');
end.
# Ignore repetitive craft messages
AddJournalIgnore('for mercenary points')
AddJournalIgnore('pour the completed potion into a bottle')
AddJournalIgnore('toss the failed mixture from the mortar')