summaryrefslogtreecommitdiff
path: root/plugins/Xmpp
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-05 17:11:23 -0700
committerBrion Vibber <brion@pobox.com>2010-05-05 17:11:23 -0700
commit173778eab145cfd73f597cd75db195e4d47fe323 (patch)
tree78034559817d04f7fd6531f270e857b3bd55bf72 /plugins/Xmpp
parentddc7811a7b412c9c3c4b6bfb9350dd18a62fdf51 (diff)
parente05415f621890bbaf42752577249ecdc22c161fc (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.php8
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']);