about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-05-08 19:33:58 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-05-08 19:38:40 +0200
commit1d8061e89b23f896035fdd62e777dd9343b35bb5 (patch)
tree0cf9969d157e282d0a2cc14048806e18a49bb248 /src/config
parent1ef700f918f706da2098460ead880b2538aaf262 (diff)
downloadprofani-tty-1d8061e89b23f896035fdd62e777dd9343b35bb5.tar.gz
Have separate settings for intype
Old: `/intype on|of`
Typing information is printed in console and titlebar.

New: `/intype titlebar|console on|off`
Typing information can be configured in more detail.

Regards https://github.com/profanity-im/profanity/issues/1516
Diffstat (limited to 'src/config')
-rw-r--r--src/config/preferences.c3
-rw-r--r--src/config/preferences.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index f4c86b2d..84209f0c 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -1803,6 +1803,7 @@ _get_group(preference_t pref)
     case PREF_WINTITLE_GOODBYE:
     case PREF_FLASH:
     case PREF_INTYPE:
+    case PREF_INTYPE_CONSOLE:
     case PREF_HISTORY:
     case PREF_OCCUPANTS:
     case PREF_OCCUPANTS_JID:
@@ -1967,6 +1968,8 @@ _get_key(preference_t pref)
         return "adv.notify.discoversion";
     case PREF_INTYPE:
         return "intype";
+    case PREF_INTYPE_CONSOLE:
+        return "intype.console";
     case PREF_HISTORY:
         return "history";
     case PREF_CARBONS:
diff --git a/src/config/preferences.h b/src/config/preferences.h
index d58cf8b1..d8573349 100644
--- a/src/config/preferences.h
+++ b/src/config/preferences.h
@@ -59,6 +59,7 @@ typedef enum {
     PREF_TRAY_READ,
     PREF_ADV_NOTIFY_DISCO_OR_VERSION,
     PREF_INTYPE,
+    PREF_INTYPE_CONSOLE,
     PREF_HISTORY,
     PREF_CARBONS,
     PREF_RECEIPTS_SEND,