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

GetIgnoreList

Fill UserList by ids from IgnoreList in string format. If IgnoreList is empty, returns false and empty list, else true.

IgnoreList filled up by Ignore and IgnoreOff, cleaned by IgnoreReset

WARNING! IDs in list in hex!

Pascal Syntax:

function GetIgnoreList(var UserList : TStringList) : Boolean;

Warning: var with type TStringList should be created before calling GetIgnoreList and be disposed after!

Pascal Example 1:

//that is used for demonstration purpose only, you can use IgnoreOff without this check.
procedure RemoveFromIgnoreList(ID : Cardinal);
var List: TStringList; i: Integer;
begin
  List := TStringList.Create;
  if GetIgnoreList(List) = False then Exit;
  if List.IndexOf(IntToHex(ID,8)) = -1 then
    IgnoreOff(ID);
  end;
  List.Free;
end;

Python Syntax:

def GetIgnoreList(): --> dict of string