diff options
Diffstat (limited to 'scripts/xmppqueuehandler.php')
-rwxr-xr-x | scripts/xmppqueuehandler.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/xmppqueuehandler.php b/scripts/xmppqueuehandler.php index a82f5b944..489ae7e7c 100755 --- a/scripts/xmppqueuehandler.php +++ b/scripts/xmppqueuehandler.php @@ -61,6 +61,9 @@ class XmppQueueHandler extends QueueHandler { } 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'])); |