minor small fixes

This commit is contained in:
hydrabolt
2015-08-11 17:07:31 +01:00
parent 6887e0d6bc
commit f243e1112d
3 changed files with 76 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ exports.Client.prototype.channelFromId = function(id){
exports.Client.prototype.getChannelLogs = function(channel, amount, cb){
amount = amount || 0;
amount = amount+1 || 0;
var client = this;
request
@@ -289,6 +289,8 @@ exports.Client.prototype.getChannelLogs = function(channel, amount, cb){
datList.add( new Message(item, channel) );
}
datList.removeIndex(0);
cb(datList);
});