prevent uberdog formatting freezes

This commit is contained in:
Zachary Pavlov 2010-10-06 22:44:32 +00:00
parent eebf4874b0
commit b069a57a56

View File

@ -25,8 +25,8 @@ class DistributedObjectGlobalUD(DistributedObjectUD):
DistributedObjectUD.delete(self)
def execCommand(self, command, mwMgrId, avId, zoneId):
text = self.__execMessage(command)
print text
text = str(self.__execMessage(command))[:config.GetInt("ai-debug-length",300)]
dclass = uber.air.dclassesByName.get("PiratesMagicWordManagerAI")
dg = dclass.aiFormatUpdate(
"setMagicWordResponse", mwMgrId, (1<<32)+avId, uber.air.ourChannel, [text])