diff --git a/lib/Connection.js b/lib/Connection.js index 6e966db..4581f71 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -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;