diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 12:55:43 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 12:55:43 +0200 |
commit | d03c953d4a74501d32b9e080dddae96600a7a8a9 (patch) | |
tree | aa006f762cf982818d5ad97c2f70fa2138e1f57e /src/event | |
parent | 86f0e0ea7033a27a83a5c24091ae1fd5b579296d (diff) | |
download | profani-tty-d03c953d4a74501d32b9e080dddae96600a7a8a9.tar.gz |
PoC for bookmark ignore
``` ~/.local/share/profanity % cat bookmark_ignore [ignore] profanity@rooms.dismail.de= ``` Regards https://github.com/profanity-im/profanity/issues/1115
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c index c1f7b90e..9129562b 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -51,6 +51,7 @@ #include "event/common.h" #include "plugins/plugins.h" #include "ui/window_list.h" +#include "tools/bookmark_ignore.h" #include "xmpp/xmpp.h" #include "xmpp/muc.h" #include "xmpp/chat_session.h" @@ -1432,7 +1433,12 @@ sv_ev_lastactivity_response(const char *const from, const int seconds, const cha void sv_ev_bookmark_autojoin(Bookmark *bookmark) { + if (bookmark_ignored(bookmark)) { + return; + } + char *nick = NULL; + if (bookmark->nick) { nick = strdup(bookmark->nick); } else { |