diff options
Diffstat (limited to 'plugins/Xmpp/XmppPlugin.php')
-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']); |