From 22e65c7b52584ad3ed4a20a8d40d4a018b52e345 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 3 May 2010 21:19:15 +0000 Subject: [PATCH] * New utility function xmpp_is_visible(), used to determine whether any given session in the wholist is visible to the current user and capable of receiving instant messages. This eliminates duplicate code in three different places. * The XMPP mortuary is functionally complete and does appear to be working properly. Upon connecting, an XMPP client now receives 'buddy delete' messages for any buddy he has ever seen, minus the ones who are online right now. This should effectively eliminate the accumulation of 'ghost' buddies on large public access systems like Uncensored. --- citadel/modules/xmpp/serv_xmpp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/citadel/modules/xmpp/serv_xmpp.h b/citadel/modules/xmpp/serv_xmpp.h index af405ea5b..473f9937e 100644 --- a/citadel/modules/xmpp/serv_xmpp.h +++ b/citadel/modules/xmpp/serv_xmpp.h @@ -83,3 +83,4 @@ void xmpp_send_message(char *, char *); void xmpp_non_sasl_authenticate(char *, char *, char *, char *); void xmpp_massacre_roster(void); void xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(void); +int xmpp_is_visible(struct CitContext *cptr); -- 2.30.2