The event for blocking a user. It occurs only during an automatic blocking if a user have not been connected to the server for a long time.

 

The event does not work if you block any UIN manually in the user management.

 

Event template


function OnUserBlock(iUIN: integer): boolean;
begin
  // your own code
  result := true;
end;
begin
end.


You can use your own code instead of the comment.

 

Description of parameters

Parameter

Type

Value

iUIN

integer

unique identifier of a user that the server is attempting to block for inactivity.

 

Return value

"True", if the function allows to block a user, False — if you do not agree and do not want block this user right now.

 

Example


function OnUserBlock(iUIN: integer): boolean;
begin
  mDeleteUserFromCommonContacts(iUIN);
  result := true;
end;
begin
end.


The script provides removal of a user from the common contact list when the server decides to block him. The common contact list is updated automatically for all users.

 

See also

mDeleteUserFromCommonContacts