forked from GNUsocial/gnu-social
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.x
Conflicts: lib/xmppmanager.php (resolved: code has moved to XmppPlugin.php)
This commit is contained in:
@@ -369,13 +369,13 @@ class XmppPlugin extends ImPlugin
|
||||
$from = $this->normalize($pl['from']);
|
||||
|
||||
if ($pl['type'] != 'chat') {
|
||||
common_log(LOG_WARNING, "Ignoring message of type ".$pl['type']." from $from.");
|
||||
return true;
|
||||
$this->log(LOG_WARNING, "Ignoring message of type ".$pl['type']." from $from: " . $pl['xml']->toString());
|
||||
return;
|
||||
}
|
||||
|
||||
if (mb_strlen($pl['body']) == 0) {
|
||||
common_log(LOG_WARNING, "Ignoring message with empty body from $from.");
|
||||
return true;
|
||||
$this->log(LOG_WARNING, "Ignoring message with empty body from $from: " . $pl['xml']->toString());
|
||||
return;
|
||||
}
|
||||
|
||||
$this->handle_incoming($from, $pl['body']);
|
||||
|
Reference in New Issue
Block a user