Difference between revisions of "Quarantine addToQuarantine"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:Quarantine_Functions]]
 
 
{{HelpFiles}}
 
{{HelpFiles}}
  
Line 31: Line 30:
  
 
</source>
 
</source>
 +
<br><source lang="javascript">
 +
<source lang="javascript">
 +
number quarantineRId = 15525774;
 +
array userRIdList = {15498958,15517129,15525326,15525327,15525328};
 +
string comment = "quarantine for test";
 +
Quarantine_addToQuarantine(quarantineRId, userRIdList, comment);
 +
 +
</source>
 +
[[Category:Quarantine_Functions]]

Revision as of 03:54, 30 November 2016


Quarantine_addToQuarantine

Specified users are added to that quarantine.

Syntax

Quarantine_addToQuarantine(quarantineRId, userRIdList,Comment);

Arguments

quarantineRId: is a number expression. It is the quarantine's resource id.

userRIdList: Array number resource id of users.

Comment: is a string expression. It must be between 10 and 250 char long. It is contents of comment property of quarantine, you can see it at quarantine history tab of users.

Return type

Empty

Examples

number quarantineRId = 15525774;
array userRIdList = {15498958,15517129,15525326,15525327,15525328};
string comment = "quarantine for test";
Quarantine_addToQuarantine(quarantineRId, userRIdList, comment);


<source lang="javascript">
number quarantineRId = 15525774;
array userRIdList = {15498958,15517129,15525326,15525327,15525328};
string comment = "quarantine for test";
Quarantine_addToQuarantine(quarantineRId, userRIdList, comment);