Commit 0c2fc922b1fa480347cbc3dd4a6c1e6a057dc2e5
1 parent
f677159157
Exists in
master
direction symbol
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
... | ... | @@ -140,6 +140,7 @@ function start(_config, _logger) { |
140 | 140 | |
141 | 141 | function onPM(data) { |
142 | 142 | var direction = 'IN'; |
143 | + var direction_symbol = '=>'; | |
143 | 144 | |
144 | 145 | if (config.globals.debug == 1) { |
145 | 146 | console.log(data); |
... | ... | @@ -159,6 +160,7 @@ function start(_config, _logger) { |
159 | 160 | if (partner == data.user_id) { |
160 | 161 | partner = data.target_user; |
161 | 162 | direction = 'OUT'; |
163 | + direction_symbol = '<='; | |
162 | 164 | } |
163 | 165 | |
164 | 166 | var message = striptags(data.message).trim(); |
... | ... | @@ -182,7 +184,7 @@ function start(_config, _logger) { |
182 | 184 | sentdate |
183 | 185 | ); |
184 | 186 | |
185 | - broadcast(config.yahoomessenger.report_to, '@' + data.sender + ': ' + message, partner); | |
187 | + broadcast(config.yahoomessenger.report_to, '@' + data.partner + ' ' + direction_symbol + ' ' + message, partner); | |
186 | 188 | |
187 | 189 | if ((direction == 'IN') && (isAdmin(partner))) { |
188 | 190 |