People from
Bot-Depot have made a Perl MSN module that we all for our chatterbots, and it has a hashref where it has information about all the sockets, including people in them.
Like if $self is the current socket, to get the current users of the socket it's like
code:
$users = join (", ", keys %{$self->GetMaster->{Socks}->{$self->{fn}}->{Buddies}});
($self->{fn} would be the socket number... the MSN module ID's them all by numbers)
So it couldn't be too hard to do in a different programming language.
________________
Also, the MSN.pm has a Answer handler that bots use, and a Join handler, and both can be used to get the username(s) that created or joined (so if you're re-invited, the Answer handler's called and all participants are listed).