w3c_v
Code
->
Perl
->
Jabber Show Users
-> Version 0.2
Standalone and Module:
Here is the source code for a CLI that displays the number of people
currently logged into your jabber server (the script has to be configured).
The
source
for a CLI page that prints just that.
Here is the source code for the module (which I use on illx.org)
just throw something like this into your web page (if its written in Perl):
#for the jabber users use lib '/path/to/module'; use JSU; my $jusers = jabber_show_users();
and viola! $jusers contains the int of how many people are logged in.
The module source code can be found
here
.