Connection: simplify xoauth error check

fork
mscdex 11 years ago
parent 679d685fd9
commit dd5ce57bc1

@ -1061,7 +1061,7 @@ Connection.prototype._resTagged = function(info) {
if (info.type === 'no' || info.type === 'bad') {
var errtext;
if (/^AUTHENTICATE XOAUTH/.test(req.fullcmd) && req.oauthError)
if (req.oauthError)
errtext = req.oauthError;
else
errtext = info.text;

Loading…
Cancel
Save