From 695da8311a68cad52f859f6b89b66b82ae6ff26c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 2 Sep 2008 12:37:18 -0400 Subject: use updated xmpphp library darcs-hash:20080902163718-84dde-80ccca8a5ad66b9993ced2419aa76f686d098334.gz --- extlib/XMPPHP/XMPP.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'extlib/XMPPHP/XMPP.php') diff --git a/extlib/XMPPHP/XMPP.php b/extlib/XMPPHP/XMPP.php index cf4e7acd9..d5b5e049b 100644 --- a/extlib/XMPPHP/XMPP.php +++ b/extlib/XMPPHP/XMPP.php @@ -144,6 +144,12 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { * @param string $subject */ public function message($to, $body, $type = 'chat', $subject = null, $payload = null) { + + if(is_null($type)) + { + $type = 'chat'; + } + $to = htmlspecialchars($to); $body = htmlspecialchars($body); $subject = htmlspecialchars($subject); @@ -154,7 +160,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { if($payload) $out .= $payload; $out .= ""; - $this->send($out); + return $this->send($out); } /** @@ -183,7 +189,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream { $out .= ""; } - $this->send($out); + return $this->send($out); } /** -- cgit v1.2.3-54-g00ecf