]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a function to show current address
authorEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:40:55 +0000 (14:40 -0400)
committerEvan Prodromou <evan@controlezvous.ca>
Thu, 26 Jun 2008 18:40:55 +0000 (14:40 -0400)
darcs-hash:20080626184055-34904-05d1ef61bcf973b4b2c234b08708fd8c62805c2a.gz

lib/jabber.php

index 842e21c508bebd1db2f601624aa1e150c99c1445..8f23e75b5787a023ba6dbcf13875d7c61a2dca38 100644 (file)
@@ -37,6 +37,10 @@ function jabber_normalize_jid($jid) {
        }
 }
 
+function jabber_daemon_address() {
+       return common_config('xmpp', 'user') . '@' . common_config('xmpp', 'server');
+}
+
 function jabber_connect($resource=NULL) {
        static $conn = NULL;
        if (!$conn) {