From ad680a934cc20e0a18ecf2e7b4e9748b4e6e89c6 Mon Sep 17 00:00:00 2001 From: Master Jumblespeed Date: Fri, 17 Jul 2015 19:39:20 -0400 Subject: [PATCH] csmud: fix name approval with developer db --- toontown/uberdog/ClientServicesManagerUD.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/toontown/uberdog/ClientServicesManagerUD.py b/toontown/uberdog/ClientServicesManagerUD.py index abdeda0f..8dd1c5f0 100755 --- a/toontown/uberdog/ClientServicesManagerUD.py +++ b/toontown/uberdog/ClientServicesManagerUD.py @@ -143,7 +143,7 @@ class AccountDB: def addNameRequest(self, avId, name, accountID = None): return True - def getNameStatus(self, avId, callback = None): + def getNameStatus(self, accountId, callback = None): return 'APPROVED' def removeNameRequest(self, avId): @@ -617,10 +617,13 @@ class GetAvatarsFSM(AvatarOperationFSM): if wishNameState == 'OPEN': nameState = 1 elif wishNameState == 'PENDING': - if self.nameStateData is None: - self.demand('QueryNameState') - return - actualNameState = self.nameStateData[str(avId)] + if accountDBType == 'remote': + if self.nameStateData is None: + self.demand('QueryNameState') + return + actualNameState = self.nameStateData[str(avId)] + else: + actualNameState = self.csm.accountDB.getNameStatus(self.account['ACCOUNT_ID']) self.csm.air.dbInterface.updateObject( self.csm.air.dbId, avId,