summaryrefslogtreecommitdiff
path: root/extlib/XMPPHP/XMPP.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-02 12:37:18 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-02 12:37:18 -0400
commit695da8311a68cad52f859f6b89b66b82ae6ff26c (patch)
treee9b1541018f1e157f7b54852b30414b21ed428a6 /extlib/XMPPHP/XMPP.php
parent7ba8bce1d3cdf93fe0b0340643f0a1dcddb5127a (diff)
use updated xmpphp library
darcs-hash:20080902163718-84dde-80ccca8a5ad66b9993ced2419aa76f686d098334.gz
Diffstat (limited to 'extlib/XMPPHP/XMPP.php')
-rw-r--r--extlib/XMPPHP/XMPP.php10
1 files changed, 8 insertions, 2 deletions
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 .= "</message>";
- $this->send($out);
+ return $this->send($out);
}
/**
@@ -183,7 +189,7 @@ class XMPPHP_XMPP extends XMPPHP_XMLStream {
$out .= "</presence>";
}
- $this->send($out);
+ return $this->send($out);
}
/**