function add_notice(&$user, &$pl)
{
$body = trim($pl['body']);
function add_notice(&$user, &$pl)
{
$body = trim($pl['body']);
if (Notice::contentTooLong($content_shortened)) {
$from = jabber_normalize_jid($pl['from']);
// TRANS: Response to XMPP source when it sent too long a message.
if (Notice::contentTooLong($content_shortened)) {
$from = jabber_normalize_jid($pl['from']);
// TRANS: Response to XMPP source when it sent too long a message.