Commit b03e7bb2f57a60d7ebeedf0aa409711d33541459
1 parent
9dcf4a4f47
Exists in
master
and in
1 other branch
config.send_on_process_msg
Showing 2 changed files with 2 additions and 1 deletions Side-by-side Diff
config.sample.json
lib/transport.js
... | ... | @@ -84,7 +84,7 @@ exports.send = async (partner, msg) => { |
84 | 84 | if (typeof partner !== 'string' || !partner.trim()) return; |
85 | 85 | if (typeof msg !== 'string' || !msg.trim()) return; |
86 | 86 | |
87 | - if (msg.trim().search(/PROSES$/) >= 0) return; | |
87 | + if (!config.send_on_process_msg && (msg.trim().search(/PROSES$/) >= 0)) return; | |
88 | 88 | |
89 | 89 | const xid = uniqid(); |
90 | 90 |