Removed separate if for esearch result

fork
Ronnie 11 years ago
parent 436a2761b2
commit 91fd2d1512

@ -1097,10 +1097,8 @@ Connection.prototype._resUntagged = function(info) {
this._caps = info.text.map(function(v) { return v.toUpperCase(); }); this._caps = info.text.map(function(v) { return v.toUpperCase(); });
else if (type === 'preauth') else if (type === 'preauth')
this.state = 'authenticated'; this.state = 'authenticated';
else if (type === 'sort' || type === 'thread') else if (type === 'sort' || type === 'thread' || type === 'esearch')
this._curReq.cbargs.push(info.text); this._curReq.cbargs.push(info.text);
else if (type === 'esearch')
this._curReq.cbargs.push(info.text);
else if (type === 'search') { else if (type === 'search') {
if (info.text.results !== undefined) { if (info.text.results !== undefined) {
// CONDSTORE-modified search results // CONDSTORE-modified search results

Loading…
Cancel
Save