From dd5ce57bc12859868638ec7e912a87c1952c361d Mon Sep 17 00:00:00 2001 From: mscdex Date: Sat, 29 Jun 2013 15:51:28 -0400 Subject: [PATCH] Connection: simplify xoauth error check --- lib/Connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;