From 0a8d69dc46a7b44490b89e16657d4d13de41b77c Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 8 Sep 2021 12:04:34 +0200 Subject: [PATCH] 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 --- src/config/preferences.c | 1 + 1 file changed, 1 insertion(+) 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;