Connection: fix typos

fork
mscdex 11 years ago
parent dd5ce57bc1
commit dd3575560d

@ -81,7 +81,7 @@ Connection.prototype.connect = function() {
socket = new Socket();
socket.setKeepAlive(true);
socket.setTimeout(0);
this._state = 'disconnected';
this.state = 'disconnected';
if (config.secure) {
tlsOptions = {};
@ -445,7 +445,7 @@ Connection.prototype._store = function(which, uids, flags, isAdding, cb) {
if (!isKeywords) {
if (flags[i][0] === '\\')
flags[i] = flags[i].substr(1);
if (this._state.box.permFlags.indexOf(flags[i].toLowerCase()) === -1
if (this._box.permFlags.indexOf(flags[i].toLowerCase()) === -1
|| flags[i] === '*')
throw new Error('The flag "' + flags[i]
+ '" is not allowed by the server for this mailbox');

Loading…
Cancel
Save