aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorMarouane L <techmetx11@disroot.org>2022-09-06 17:29:07 +0100
committerMarouane L <techmetx11@disroot.org>2022-10-18 23:24:30 +0100
commitf934c5b59f2fe2c3c00a50135add4aec55ac4024 (patch)
tree730d135fb92cb15b68717da1f5248c8bc6525019 /src/event
parentfc8455ba34fdb467cc2702e4e071e850eaaf9be7 (diff)
downloadprofani-tty-f934c5b59f2fe2c3c00a50135add4aec55ac4024.tar.gz
Add vCard support
Only nicknames, photos, birthdays, addresses, telephone numbers, emails, JIDs, titles, roles, notes, and URLs are supported Due to the synopsis array not having enough space, `/vcard photo open-self` and `/vcard photo save-self` are not documented properly in the synopsis section of the `/vcard` command, but they are documented in the arguments section Fixed memory leak in vcard autocomplete (thanks to debXwoody)
Diffstat (limited to 'src/event')
-rw-r--r--src/event/common.c2
-rw-r--r--src/event/server_events.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/event/common.c b/src/event/common.c
index 5c17ca9a..84bc0d58 100644
--- a/src/event/common.c
+++ b/src/event/common.c
@@ -41,6 +41,7 @@
#include "xmpp/roster_list.h"
#include "xmpp/muc.h"
#include "xmpp/xmpp.h"
+#include "xmpp/vcard_funcs.h"
#include "database.h"
#include "tools/bookmark_ignore.h"
@@ -73,6 +74,7 @@ ev_disconnect_cleanup(void)
#endif
log_database_close();
bookmark_ignore_on_disconnect();
+ vcard_user_free();
}
gboolean
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 57f73c06..df796448 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -61,6 +61,7 @@
#include "xmpp/chat_session.h"
#include "xmpp/roster_list.h"
#include "xmpp/avatar.h"
+#include "xmpp/vcard_funcs.h"
#ifdef HAVE_LIBOTR
#include "otr/otr.h"
@@ -101,7 +102,7 @@ sv_ev_login_account_success(char* account_name, gboolean secured)
#endif
log_database_init(account);
-
+ vcard_user_refresh();
avatar_pep_subscribe();
ui_handle_login_account_success(account, secured);