[Pkg-javascript-commits] [ltx] 13/469: client: allow passing jid as JID
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:00:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit f4a09188c85f1dee9164ae29da949537f597eca7
Author: Astro <astro at spaceboyz.net>
Date: Thu May 27 03:04:04 2010 +0200
client: allow passing jid as JID
---
lib/xmpp/client.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lib/xmpp/client.js b/lib/xmpp/client.js
index 63f88a5..5831e02 100644
--- a/lib/xmpp/client.js
+++ b/lib/xmpp/client.js
@@ -13,7 +13,10 @@ var dns = require('dns');
function Client(params) {
Connection.call(this);
- this.jid = new JID(params.jid);
+ if (typeof params.jid == 'string')
+ this.jid = new JID(params.jid);
+ else
+ this.jid = params.jid;
this.password = params.password;
this.xmlns = "jabber:client";
this.xmppVersion = "1.0";
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list