Thu, 18 Mar 2010 16:05:59 +0000
Add to the MUC library support for sending private messages
js/xmpp_muc.js | file | annotate | diff | comparison | revisions |
--- a/js/xmpp_muc.js Thu Mar 18 15:53:39 2010 +0000 +++ b/js/xmpp_muc.js Thu Mar 18 16:05:59 2010 +0000 @@ -45,6 +45,12 @@ .c("body").t(message||"")); }, + send_private_message: function (nick, message) + { + return this.send_stanza($msg({to: this.jid+"/"+nick, type: "chat"}) + .c("body").t(message||"")); + }, + send_stanza: function (stanza) { return this.conn.send(stanza.tree());