sylae / ligrev

XMPP MUC Utility bot
GNU General Public License v3.0
2 stars 1 forks source link

Delivering :tells fail if the message has % #51

Closed sylae closed 8 years ago

sylae commented 8 years ago

Sample data:

INSERT INTO `tell` (`sender`, `recipient`, `sent`, `private`, `message`) VALUES(
  'Thynar@calref.net',
  'Gabriel@calref.net',
  1452755328,
  0,
  'I wanted a combat mod because I want my night-vision long range scope sniper rifle to actually kill super mutants when I stealth headshot them and not just get them down to 80% HP and have them immediately alerted to me'
);

This tell will fail to be delivered due to the following error: jaxl_exception:48 - 2016-01-14 08:12:23 - got jaxl exception construct with sprintf(): Too few arguments, 2, /home/sylae/ligrev/classes/xmppEntity.php, 131

Changing the message to 'message too long?' causes the message to be delivered successfully.