Client now reworks with PM

This commit is contained in:
hydrabolt
2015-08-20 17:21:56 +01:00
parent 369cdcd7de
commit 6ade919bc3
3 changed files with 4 additions and 3 deletions

View File

@@ -969,7 +969,8 @@ exports.Client.prototype.getServer = function( id ) {
}
exports.Client.prototype.getChannel = function( id ) {
return this.getChannels().filter( "id", id, true );
var normalChan = this.getChannels().filter( "id", id, true );
return normalChan || this.PMList.filter("id", id, true);
}
exports.Client.prototype.getUser = function( id ) {