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

@@ -2003,6 +2003,9 @@ export default class InternalClient {
break;
case PacketType.FRIEND_ADD:
if (this.user.bot) {
return;
}
if (data.type === 1) { // accepted/got accepted a friend request
var inUser = self.incoming_friend_requests.get("id", data.id);
if (inUser) {
@@ -2030,6 +2033,9 @@ export default class InternalClient {
}
break;
case PacketType.FRIEND_REMOVE:
if (this.user.bot) {
return;
}
var user = self.friends.get("id", data.id);
if (user) {
self.friends.remove(user);