From 4e3b69014eb66a8d63daeb94a0b1b70368d0052b Mon Sep 17 00:00:00 2001
From: Evan Prodromou <evan@prodromou.name>
Date: Sat, 30 Aug 2008 01:56:40 -0400
Subject: [PATCH] get address from addresses

darcs-hash:20080830055640-84dde-2cd151d876f6586d827ecfc38e1b72d1cfb4950d.gz
---
 scripts/xmppdaemon.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index c7a4fc7638..b57f8ef839 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -136,7 +136,7 @@ class XMPPDaemon {
 			$this->log(LOG_WARNING, 'Forwarded message without addresses');
 			return NULL;
 		}
-		$address = $xml->sub('address');
+		$address = $addresses->sub('address');
 		if (!$address) {
 			$this->log(LOG_WARNING, 'Forwarded message without address');
 			return NULL;
-- 
2.39.5