# Forwarded from another daemon (probably a broadcaster) for
# us to handle
- if (preg_match('/^'.jabber_daemon_address().'/', $from)) {
+ if (preg_match('/^'.strtolower(jabber_daemon_address()).'/', strtolower($from))) {
$from = $this->get_ofrom($pl);
if (is_null($from)) {
return;
}
function forward_message(&$pl) {
+ if ($pl['type'] != 'chat') {
+ return;
+ }
$listener = $this->listener();
$this->log(LOG_INFO, 'Forwarding message from ' . $pl['from'] . ' to ' . $listener);
$this->conn->message($this->listener(), $pl['body'], 'chat', NULL, $this->ofrom($pl['from']));