sys/time.h no longer needed on modern systems
[citadel.git] / citadel / modules / xmpp / xmpp_presence.c
index 9191f8f65561b413cc28c4b7e2938e360be6f105..053994a3490b956172648cf5933055ec1b437c6b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Handle XMPP presence exchanges
  *
- * Copyright (c) 2007-2010 by Art Cancro
+ * Copyright (c) 2007-2014 by Art Cancro
  *
  * This program is open source software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -58,7 +58,6 @@
 #include "serv_xmpp.h"
 
 
-
 /* 
  * Indicate the presence of another user to the client
  * (used in several places)
 void xmpp_indicate_presence(char *presence_jid)
 {
        XPrint(HKEY("presence"),
-              XPROPERTY("from", presence_jid, strlen(presence_jid)),
-              XPROPERTY("to",  XMPP->client_jid, strlen(XMPP->client_jid)),
-              TYPE_ARGEND);
+               XCLOSED,
+               XPROPERTY("from", presence_jid, strlen(presence_jid)),
+               XPROPERTY("to",  XMPP->client_jid, strlen(XMPP->client_jid)),
+               TYPE_ARGEND
+       );
 }
 
 
-
 /*
  * Convenience function to determine whether any given session is 'visible' to any other given session,
  * and is capable of receiving instant messages from that session.