]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_queue.c
Got the unsolicited roster pushes working.
[citadel.git] / citadel / modules / jabber / xmpp_queue.c
index 8a0e79554d6d60c535c63d85a962ee2823f4bff6..b78f762ee92a891166dfcc29e55683e65af8f630 100644 (file)
 #include <expat.h>
 #include "serv_xmpp.h"
 
-
+int queue_event_seq = 0;
 
 void xmpp_queue_event(int event_type, char *email_addr) {
 
-       static int seq = 0;
        struct xmpp_event *xptr = NULL;
        struct xmpp_event *new_event = NULL;
        struct xmpp_event *last = NULL;
@@ -79,7 +78,7 @@ void xmpp_queue_event(int event_type, char *email_addr) {
        new_event = (struct xmpp_event *) malloc(sizeof(struct xmpp_event));
        new_event->next = NULL;
        new_event->event_time = time(NULL);
-       new_event->event_seq = ++seq;
+       new_event->event_seq = ++queue_event_seq;
        new_event->event_type = event_type;
        new_event->session_which_generated_this_event = CC->cs_pid;
        safestrncpy(new_event->event_jid, email_addr, sizeof new_event->event_jid);