about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-09-08 12:04:34 +0200
committerMichael Vetter <jubalh@iodoru.org>2021-09-08 12:04:34 +0200
commit0a8d69dc46a7b44490b89e16657d4d13de41b77c (patch)
treebd540953caeb1e7fa46767b6d40f31e7252810b1
parentc89e31269c8d852608fc56744f7b67b52e7fc45c (diff)
downloadprofani-tty-0a8d69dc46a7b44490b89e16657d4d13de41b77c.tar.gz
Enable whole word only notifications by default
Set PREF_NOTIFY_MENTION_WHOLE_WORD to true.

If I'm not mistaken the _mucwin_print_mention() / get_mentions()
functions only work correctly since
6bc440c6f7e8c2c40d2d45f5c0decc15821abc8b.

This changed the behaviour for users.
They got notified when their nick was `kaffee` and in the message the
string `kaffeekanne` occured.

Setting `/notify room mention word_whole` corrected this.

So my idea is that only now the mention function work correctly. And to
have a good default behaviour we should set the `word_whole` on by
default.

Regards https://github.com/profanity-im/profanity/issues/1578
-rw-r--r--src/config/preferences.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 4b24d46b..df23efe6 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -2251,6 +2251,7 @@ _get_default_boolean(preference_t pref)
     case PREF_COLOR_NICK_OWN:
     case PREF_INTYPE:
     case PREF_INTYPE_CONSOLE:
+    case PREF_NOTIFY_MENTION_WHOLE_WORD:
         return TRUE;
     default:
         return FALSE;