Command: ole.GetUsers(channel,start,count);
Syntax: ole.GetUsers(string channel,int start,int count);
Return: int

Use this command to get a list of users that are on the specified channel. In oreder to use this command you must be on the specified channel.

Example:
//get all channel users
var users=ole.GetUsers("#foo",0,ole.CountUsers("#foo"));
//get first 3 users
var users=ole.GetUsers("#foo",0,3);
//get the 5-th user
var user=ole.GetUsers("#foo",4,1);
//get the last 3 users
var users=ole.GetUsers("#foo",ole.CountUsers("#foo")-3,3);
See also: CountUsers, GetChannels


Home|Scripting