Software /
code /
prosody-modules
Comparison
mod_muc_inject_mentions/README.markdown @ 4253:32b4901a9d8d
mod_muc_inject_mentions: Add new setting to trigger mentions only if a prefix is found
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Tue, 17 Nov 2020 13:45:33 +0100 |
parent | 4164:a82b0745383b |
child | 4312:33a41503b9e3 |
comparison
equal
deleted
inserted
replaced
4252:1327e1e1c94e | 4253:32b4901a9d8d |
---|---|
89 In short, the module will detect if a mention is actually a mention | 89 In short, the module will detect if a mention is actually a mention |
90 if the nickname (with or without affixes) is between spaces, new lines, or at the beginning/end of the message. | 90 if the nickname (with or without affixes) is between spaces, new lines, or at the beginning/end of the message. |
91 This can be changed using: | 91 This can be changed using: |
92 | 92 |
93 ``` | 93 ``` |
94 -- muc_inject_mentions_mention_delimiters = {" ", "", "\n"} | 94 -- muc_inject_mentions_mention_delimiters = {" ", "", "\n", "\t"} |
95 ``` | 95 ``` |
96 Generally speaking and unless the use-case is very specific, there should be no need to modify the defaults of this setting. | 96 Generally speaking and unless the use-case is very specific, there should be no need to modify the defaults of this setting. |
97 | |
98 When triggering a mention must only happen if that mention includes a prefix, this can be configured with: | |
99 ``` | |
100 -- muc_inject_mentions_prefix_mandatory = true | |
101 ``` | |
102 | |
103 By default, mentions use the bare jid of the participant as the URI attribute. | |
104 If the MUC jid of the participant (eg. room@chat.example.org/Romeo) is preferred, this can be set using: | |
105 ``` | |
106 -- muc_inject_mentions_use_real_jid = false | |
107 ``` | |
97 | 108 |
98 | 109 |
99 # Example stanzas | 110 # Example stanzas |
100 | 111 |
101 Alice sends the following message | 112 Alice sends the following message |