diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 17:37:27 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-05-24 17:55:15 +0200 |
commit | be4a6cac78d9f9bd41a55985945446d60fde3a76 (patch) | |
tree | c5774305d3b2dc496f567a820705a5d399d7e09d /src/command/cmd_funcs.c | |
parent | f121554088a6bffd2721b94c46a40d8ec61e0b46 (diff) | |
download | profani-tty-be4a6cac78d9f9bd41a55985945446d60fde3a76.tar.gz |
Add bookmark ignore add|remove
Regards https://github.com/profanity-im/profanity/issues/1115
Diffstat (limited to 'src/command/cmd_funcs.c')
-rw-r--r-- | src/command/cmd_funcs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 171a3e52..27416108 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -4787,6 +4787,18 @@ cmd_bookmark_ignore(ProfWin *window, const char *const command, gchar **args) return TRUE; } + if (strcmp(args[1], "add") == 0 && args[2] != NULL) { + bookmark_ignore_add(args[2]); + cons_show("Autojoin for bookmark %s added to ignore list.", args[2]); + return TRUE; + } + + if (strcmp(args[1], "remove") == 0 && args[2] != NULL) { + bookmark_ignore_remove(args[2]); + cons_show("Autojoin for bookmark %s removed from ignore list.", args[2]); + return TRUE; + } + cons_bad_cmd_usage(command); return TRUE; } |