diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-01-23 22:54:47 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-01-23 22:54:47 +0100 |
commit | 2d19ad0db4b41a800e1753922c0d09d136473812 (patch) | |
tree | 7264aaa55e41c0399099620aa0d89769e9cb8be3 /src/config/preferences.c | |
parent | fd38c7adae32f3fd3823c1e43513102a6bd7aa08 (diff) | |
download | profani-tty-2d19ad0db4b41a800e1753922c0d09d136473812.tar.gz |
Add option to notify about version request
Cannot be configured for now. Can be set via `adv.notify.discoversion` in the `notification` section. Will notify about version requests via XEP-0092 and XEP-0232. Client version can still be seen via caps (capabilities). See `stanza_attach_caps()`.
Diffstat (limited to 'src/config/preferences.c')
-rw-r--r-- | src/config/preferences.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c index f80eae29..2b2c7191 100644 --- a/src/config/preferences.c +++ b/src/config/preferences.c @@ -1740,6 +1740,7 @@ _get_group(preference_t pref) case PREF_NOTIFY_MENTION_WHOLE_WORD: case PREF_TRAY: case PREF_TRAY_READ: + case PREF_ADV_NOTIFY_DISCO_OR_VERSION: return PREF_GROUP_NOTIFICATIONS; case PREF_CHLOG: case PREF_GRLOG: @@ -1804,6 +1805,8 @@ _get_key(preference_t pref) return "tray"; case PREF_TRAY_READ: return "tray.read"; + case PREF_ADV_NOTIFY_DISCO_OR_VERSION: + return "adv.notify.discoversion"; case PREF_INTYPE: return "intype"; case PREF_HISTORY: |