small fixes

This commit is contained in:
hydrabolt
2015-08-14 21:03:34 +01:00
parent b6821dab42
commit 776dda9bff
2 changed files with 7 additions and 3 deletions

View File

@@ -78,6 +78,10 @@ exports.Client.prototype.cacheServer = function( id, cb, members ) {
.set( "authorization", self.token )
.end( function( err, res ) {
if(err){
throw err;
}
var channelList = res.body;
for ( channel of channelList ) {
server.channels.add( new Channel( channel, server ) );