Skip to content

Commit

Permalink
Allow passing authcid param introduced by strophe/strophejs#113
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Apr 14, 2015
1 parent 07db748 commit 72bd4d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roster/strophe.roster.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ Strophe.addConnectionPlugin('roster',
oldCallback.apply(this, arguments);
}
};
conn.connect = function(jid, pass, callback, wait, hold, route)
conn.connect = function(jid, pass, callback, wait, hold, route, authcid)
{
oldCallback = callback;
if (typeof jid == "undefined")
jid = null;
if (typeof pass == "undefined")
pass = null;
callback = newCallback;
_connect.apply(conn, [jid, pass, callback, wait, hold, route]);
_connect.apply(conn, [jid, pass, callback, wait, hold, route, authcid]);
};
conn.attach = function(jid, sid, rid, callback, wait, hold, wind)
{
Expand Down

0 comments on commit 72bd4d5

Please sign in to comment.