diff options
author | Brion Vibber <brion@pobox.com> | 2010-05-05 17:11:23 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-05-05 17:11:23 -0700 |
commit | 173778eab145cfd73f597cd75db195e4d47fe323 (patch) | |
tree | 78034559817d04f7fd6531f270e857b3bd55bf72 /plugins/Xmpp | |
parent | ddc7811a7b412c9c3c4b6bfb9350dd18a62fdf51 (diff) | |
parent | e05415f621890bbaf42752577249ecdc22c161fc (diff) |
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)
Diffstat (limited to 'plugins/Xmpp')
-rw-r--r-- | plugins/Xmpp/XmppPlugin.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Xmpp/XmppPlugin.php b/plugins/Xmpp/XmppPlugin.php index 9d75e2475..66468b5f2 100644 --- a/plugins/Xmpp/XmppPlugin.php +++ b/plugins/Xmpp/XmppPlugin.php @@ -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']); |