Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

AddChatUserIgnore

Adds a mobile’s name to the chat ignore list. Messages from this mobile will not appear in the journal but can still be read by script methods such as InJournal.

This is useful for filtering out spam from specific players while still being able to process their messages programmatically.

Note: This method has no effect on connected (attached) clients — it only applies to Stealth’s internal journal.

Добавляет имя мобайла в список игнорируемых в чате. Сообщения от этого мобайла не будут отображаться в журнале, но по-прежнему доступны скриптовым методам, таким как InJournal.

Полезно для фильтрации спама от определённых игроков с сохранением возможности программной обработки их сообщений.

Примечание: Метод не действует на подключённых (attached) клиентов — применяется только к внутреннему журналу Stealth.

Pascal

procedure AddChatUserIgnore(UserName: String);

Parameters:

  • UserName — name of the mobile whose messages should be ignored.

Python

def AddChatUserIgnore(UserName: str) -> None: ...

Pascal Example

begin
  // Ignore messages from a known spammer
  AddChatUserIgnore('Spammer Bob');
  AddToSystemJournal('Ignoring messages from Spammer Bob');
end.

Python Example

AddChatUserIgnore('Spammer Bob')
AddToSystemJournal('Ignoring messages from Spammer Bob')

See Also

AddJournalIgnore, InJournal