Commit 05fc6bea12e53b0cf34c34a46dedd2cf73d35b35

Authored by Adhidarma Hadiwinoto
1 parent 6a50ae5037
Exists in master

replace string startsWith with indexOf for compability reason

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -214,14 +214,14 @@ function start(_config, _logger) {
214 214 pm(target, messageToForward);
215 215  
216 216 }
217   - else if (message.startsWith('!relogin')) {
  217 + else if (message.indexOf('!relogin') == 0) {
218 218  
219 219 broadcast(config.yahoomessenger.report_to, 'relogin requested by' + data.sender);
220 220 logger.info('Relogin request by pm');
221 221 relogin();
222 222  
223 223 }
224   - else if (message.startsWith('!setstatus ')) {
  224 + else if (message.indexOf('!setstatus ') == 0) {
225 225  
226 226 logger.info('Set status request by pm');
227 227