Channel Interegation

Is there a way to interegate the members of a channel server side?

Kev

Integrate? Maybe Im being dumb but I dont follow the meaning of the word as used in thsi context.

Help my poor brian cells?

Thanks

jk

Sorry, my awful spelling no doubt…

I want to be able to say:


UserID[] users = task.getChannelUsers(id);

or maybe something like


task.isChannelMember(userID, channelID);

Kev

PS. “interrogate” is apparantly what I meant :slight_smile:

Ah, each user reports its own joins and leaves to its SimUserDataListener. So each user cna be aware on the svere side of what channels its joiend, and you could peek the users assuming you kept a list on your boot object. ALternately, the SimUSerDataListener coudl be updatign GLOs that reprsent your channels as they get those messages.

As I describe that, it does soudn like the long way aroudn though. Do you thinka SImTask method to query a channel for its currnet user list woudl be useful? I can RFE it…

Yeah, I actually have a SimUserDataListener GLC seperate to the boot object - which I should really call UserRegistry (its called UserHandler atm - heh, I was learning). It simply maintains lists of the users (and their mapping to their usernames for logging purposes) on the global channel. Each of the other channels is related to an arena so its stored in with the Arena GLO. However, there were a few places where I would have just liked to say - is the user on this channel

I think it could be useful as long as it wasn’t too costly (I guess this information is being stored somewhere anyway?). I suspect its something that will come up reasonably often.

Kev

Oh, the other thing was to be able to get a list of the channels that have been created by name…

Kev

Oh, and another … it’d be useful to be able to get a channel’s name based on a ChannelID - server side.

Kev

Okie Ill ake a note to look at all 3 of these…