This commit is contained in:
abalabahaha
2016-05-11 20:21:37 -07:00
parent 0e5a1d2df7
commit db7dca65b2
4 changed files with 14 additions and 2 deletions

View File

@@ -2320,6 +2320,9 @@ var InternalClient = (function () {
break;
case _Constants.PacketType.FRIEND_ADD:
if (_this41.user.bot) {
return;
}
if (data.type === 1) {
// accepted/got accepted a friend request
var inUser = self.incoming_friend_requests.get("id", data.id);
@@ -2348,6 +2351,9 @@ var InternalClient = (function () {
}
break;
case _Constants.PacketType.FRIEND_REMOVE:
if (_this41.user.bot) {
return;
}
var user = self.friends.get("id", data.id);
if (user) {
self.friends.remove(user);