diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 13:31:24 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 13:31:24 +0200 |
commit | 242ffbcf7033649534d0acdf250cee90b08723e6 (patch) | |
tree | 0bc32a7a39076f2c50816ee5df0e746fe2f8685d /src/event | |
parent | d03c953d4a74501d32b9e080dddae96600a7a8a9 (diff) | |
download | profani-tty-242ffbcf7033649534d0acdf250cee90b08723e6.tar.gz |
Add bookmark ignore functionality for multiple accounts
``` cat ~/.local/share/profanity/bookmark_ignore [jubalh@iodoru.org] profanity@rooms.dismail.de=true [testuser@domain.org] testr@rooms.domain.org=true ``` Regards https://github.com/profanity-im/profanity/issues/1115
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/common.c | 2 | ||||
-rw-r--r-- | src/event/server_events.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/event/common.c b/src/event/common.c index 2d829e5c..259f43dc 100644 --- a/src/event/common.c +++ b/src/event/common.c @@ -40,6 +40,7 @@ #include "xmpp/muc.h" #include "xmpp/xmpp.h" #include "database.h" +#include "tools/bookmark_ignore.h" #ifdef HAVE_LIBGPGME #include "pgp/gpg.h" @@ -69,6 +70,7 @@ ev_disconnect_cleanup(void) omemo_on_disconnect(); #endif log_database_close(); + bookmark_ignore_on_disconnect(); } gboolean diff --git a/src/event/server_events.c b/src/event/server_events.c index 9129562b..ac93a951 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -79,6 +79,8 @@ sv_ev_login_account_success(char *account_name, gboolean secured) { ProfAccount *account = accounts_get_account(account_name); + bookmark_ignore_on_connect(account->jid); + roster_create(); #ifdef HAVE_LIBOTR |