better debugging output for forwarded messages
darcs-hash:20080830055938-84dde-d0c6b241502b674f974f75f6c22b13f9dca8134c.gz
This commit is contained in:
parent
4e3b69014e
commit
c3f4789735
|
@ -146,7 +146,14 @@ class XMPPDaemon {
|
||||||
$this->log(LOG_WARNING, 'Type of forwarded message is not ofrom');
|
$this->log(LOG_WARNING, 'Type of forwarded message is not ofrom');
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
return $address->attr('jid');
|
$jid = $address->attr('jid');
|
||||||
|
if (!$jid) {
|
||||||
|
$this->log(LOG_WARNING, 'Could not get jid from address');
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
$this->log(LOG_DEBUG, 'Got message forwarded from jid ' . $jid);
|
||||||
|
|
||||||
|
return $jid;
|
||||||
}
|
}
|
||||||
|
|
||||||
function is_autoreply($txt) {
|
function is_autoreply($txt) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user