From 6e354b5fc3edaa1f2998088130e7102b55cfef3c Mon Sep 17 00:00:00 2001 From: John Date: Thu, 27 Aug 2015 15:06:13 +0300 Subject: [PATCH] Chat is now persistent even after leaving zones --- dependencies/astron/dclass/stride.dc | 2 +- otp/chat/ChatAgentUD.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) 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()