4 * Handle XMPP presence exchanges
6 * Copyright (c) 2007 by Art Cancro
7 * This code is released under the terms of the GNU General Public License.
19 #include <sys/types.h>
21 #if TIME_WITH_SYS_TIME
22 # include <sys/time.h>
26 # include <sys/time.h>
36 #include <libcitadel.h>
39 #include "citserver.h"
42 #include "internet_addressing.h"
44 #include "ctdl_module.h"
48 #include "serv_xmpp.h"
52 * Initial dump of the entire wholist
54 void jabber_wholist_presence_dump(void)
56 struct CitContext *cptr;
57 int aide = (CC->user.axlevel >= 6);
59 for (cptr = ContextList; cptr != NULL; cptr = cptr->next) {
61 (((cptr->cs_flags&CS_STEALTH)==0) || (aide)) /* aides can see everyone */
62 && (cptr->user.usernum != CC->user.usernum) /* don't tell me about myself */
64 cprintf("<presence type=\"available\" from=\"%s\"></presence>", cptr->cs_inet_email);
70 #endif /* HAVE_EXPAT */