mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Another friend fix
This commit is contained in:
parent
da0366d02a
commit
156752b4a7
2 changed files with 3 additions and 4 deletions
|
@ -1098,18 +1098,18 @@ class LocalAvatar(DistributedAvatar.DistributedAvatar, DistributedSmoothNode.Dis
|
|||
|
||||
def __friendOnline(self, doId):
|
||||
friend = base.cr.identifyFriend(doId)
|
||||
if friend != None:
|
||||
if friend:
|
||||
self.setSystemMessage(doId, OTPLocalizer.WhisperFriendComingOnline % friend.getName())
|
||||
|
||||
def __friendOffline(self, doId):
|
||||
friend = base.cr.identifyFriend(doId)
|
||||
if friend != None:
|
||||
if friend:
|
||||
self.setSystemMessage(0, OTPLocalizer.WhisperFriendLoggedOut % friend.getName())
|
||||
|
||||
def clickedWhisper(self, doId):
|
||||
friend = base.cr.identifyFriend(doId)
|
||||
|
||||
if friend != None:
|
||||
if friend:
|
||||
messenger.send('clickedNametag', [friend])
|
||||
self.chatMgr.whisperTo(friend.getName(), doId)
|
||||
|
||||
|
|
|
@ -239,7 +239,6 @@ class TTSFriendsManagerUD(DistributedObjectGlobalUD):
|
|||
friendId = friend[0]
|
||||
if friendId in self.onlineToons:
|
||||
self.sendUpdateToAvatarId(doId, 'friendOnline', [friendId])
|
||||
self.sendUpdateToAvatarId(friendId, 'friendOnline', [doId])
|
||||
|
||||
def goingOffline(self, avId):
|
||||
self.toonOffline(avId)
|
||||
|
|
Loading…
Reference in a new issue