Chat is now persistent even after leaving zones

This commit is contained in:
John 2015-08-27 15:06:13 +03:00
parent 8e620d589a
commit 6e354b5fc3
2 changed files with 2 additions and 7 deletions

View file

@ -133,7 +133,7 @@ dclass DistributedAvatar : DistributedSmoothNode {
friendsNotify(DoId avId, int8 status) ownrecv airecv; friendsNotify(DoId avId, int8 status) ownrecv airecv;
checkAvOnShard(DoId) clsend airecv; checkAvOnShard(DoId) clsend airecv;
confirmAvOnShard(DoId avId, int8 isOnShard); 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; setTalkWhisper(uint32 avId, string(0-400) chat) ownrecv clsend;
}; };

View file

@ -41,12 +41,7 @@ class ChatAgentUD(DistributedObjectGlobalUD):
return return
self.air.writeServerEvent('chat-said', sender, message) self.air.writeServerEvent('chat-said', sender, message)
self.air.send(self.air.dclassesByName['DistributedAvatarUD'].aiFormatUpdate('setTalk', sender, sender, self.air.ourChannel, [message]))
DistributedAvatar = self.air.dclassesByName['DistributedAvatarUD']
dg = DistributedAvatar.aiFormatUpdate('setTalk', sender, sender,
self.air.ourChannel,
[message])
self.air.send(dg)
def detectBadWords(self, sender, message): def detectBadWords(self, sender, message):
words = message.split() words = message.split()