diff --git a/dependencies/astron/dclass/stride.dc b/dependencies/astron/dclass/stride.dc index 00927ac5..8e09942b 100644 --- a/dependencies/astron/dclass/stride.dc +++ b/dependencies/astron/dclass/stride.dc @@ -133,7 +133,7 @@ dclass DistributedAvatar : DistributedSmoothNode { friendsNotify(DoId avId, int8 status) ownrecv airecv; checkAvOnShard(DoId) clsend airecv; confirmAvOnShard(DoId avId, int8 isOnShard); - setTalk(string(0-400) chat) broadcast; + setTalk(string(0-400) chat) broadcast ram; setTalkWhisper(uint32 avId, string(0-400) chat) ownrecv clsend; }; diff --git a/otp/chat/ChatAgentUD.py b/otp/chat/ChatAgentUD.py index 5c1973f6..5b816f13 100755 --- a/otp/chat/ChatAgentUD.py +++ b/otp/chat/ChatAgentUD.py @@ -41,12 +41,7 @@ class ChatAgentUD(DistributedObjectGlobalUD): return self.air.writeServerEvent('chat-said', sender, message) - - DistributedAvatar = self.air.dclassesByName['DistributedAvatarUD'] - dg = DistributedAvatar.aiFormatUpdate('setTalk', sender, sender, - self.air.ourChannel, - [message]) - self.air.send(dg) + self.air.send(self.air.dclassesByName['DistributedAvatarUD'].aiFormatUpdate('setTalk', sender, sender, self.air.ourChannel, [message])) def detectBadWords(self, sender, message): words = message.split()