Discussion:
Number of occupants in a room.
StuFF mc
2010-04-18 11:02:59 UTC
Permalink
Somehow I can't find that, and since I see a lot of activity on this
ML this morning ;-)
Erik Elmore
2010-04-18 13:23:31 UTC
Permalink
If you're talking about MUC and you have a Jabber::MUC::MUCClient object
named "muc", then it would be "muc.roster.size". MUCClient#roster is an
array of presence packets corresponding to each occupant. It's mentioned at
the top of http://home.gna.org/xmpp4r/rdoc/classes/Jabber/MUC/MUCClient.html,
but it's listed under "Attributes".

+=
Erik Elmore
Post by StuFF mc
Somehow I can't find that, and since I see a lot of activity on this
ML this morning ;-)
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
StuFF mc
2010-04-18 13:27:39 UTC
Permalink
Wow! You saved my life... It wasn't obvious at all to figure it out.
It seems I wasn't use (yet) to check out the attributes in rdocs.

Thanks Erik!
Post by Erik Elmore
If you're talking about MUC and you have a Jabber::MUC::MUCClient object
named "muc", then it would be "muc.roster.size".  MUCClient#roster is an
array of presence packets corresponding to each occupant.  It's mentioned at
the top of
http://home.gna.org/xmpp4r/rdoc/classes/Jabber/MUC/MUCClient.html, but it's
listed under "Attributes".
+=
Erik Elmore
Post by StuFF mc
Somehow I can't find that, and since I see a lot of activity on this
ML this morning ;-)
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
_______________________________________________
Xmpp4r-devel mailing list
https://mail.gna.org/listinfo/xmpp4r-devel
Loading...