about summary refs log tree commit diff stats
path: root/src/config/preferences.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-01-23 22:54:47 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-01-23 22:54:47 +0100
commit2d19ad0db4b41a800e1753922c0d09d136473812 (patch)
tree7264aaa55e41c0399099620aa0d89769e9cb8be3 /src/config/preferences.c
parentfd38c7adae32f3fd3823c1e43513102a6bd7aa08 (diff)
downloadprofani-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.c3
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: