|
|
@ -1,10 +1,10 @@
|
|
|
|
var Fs = require("fs");
|
|
|
|
var Fs = require("fs");
|
|
|
|
|
|
|
|
|
|
|
|
var message = function(file, msg) {
|
|
|
|
var message = function(file, msg) {
|
|
|
|
file.write(msg+"\n");
|
|
|
|
file.write(msg+"\n");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var create = module.exports.create = function(filePath, backingStore) {
|
|
|
|
var create = module.exports.create = function(filePath, backingStore) {
|
|
|
|
|
|
|
|
|
|
|
|
var file = Fs.createWriteStream(filePath, {flags: 'a+'});
|
|
|
|
var file = Fs.createWriteStream(filePath, {flags: 'a+'});
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,5 @@
|
|
|
|
backingStore.message(channel, msg, callback);
|
|
|
|
backingStore.message(channel, msg, callback);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getMessages: backingStore.getMessages
|
|
|
|
getMessages: backingStore.getMessages
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|