From cb1ffd8c16c28efeb54fc72db445fe21bdc62d8e Mon Sep 17 00:00:00 2001 From: John Date: Sat, 6 Jun 2015 22:38:52 +0300 Subject: [PATCH] DANIEL: Remove true friends --- toontown/distributed/ToontownClientRepository.py | 1 + toontown/friends/TTSFriendsManagerUD.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/toontown/distributed/ToontownClientRepository.py b/toontown/distributed/ToontownClientRepository.py index 3b2618a1..64101c72 100755 --- a/toontown/distributed/ToontownClientRepository.py +++ b/toontown/distributed/ToontownClientRepository.py @@ -672,6 +672,7 @@ class ToontownClientRepository(OTPClientRepository.OTPClientRepository): def removeFriend(self, avatarId): self.ttsFriendsManager.d_removeFriend(avatarId) + base.localAvatar.removeTrueFriends(avatarId) def clearFriendState(self): self.friendsMap = {} diff --git a/toontown/friends/TTSFriendsManagerUD.py b/toontown/friends/TTSFriendsManagerUD.py index da03ab68..2cd0eb4c 100755 --- a/toontown/friends/TTSFriendsManagerUD.py +++ b/toontown/friends/TTSFriendsManagerUD.py @@ -222,7 +222,7 @@ class TTSFriendsManagerUD(DistributedObjectGlobalUD): # -- Toon Online/Offline -- def toonOnline(self, doId, friendsList): - if not doId in self.onlineToons: + if doId not in self.onlineToons: self.onlineToons.append(doId) channel = self.GetPuppetConnectionChannel(doId)