admin
Admin
| Posts: 10139 |  |
|
Re:Get new visitors to see what people said before - 2008/02/25 09:58
Hi
You can't do that "out of the box" You could ask flash clients to re-send the datas they sent but I don't think it's a good way.
Or you could write a plugin for the new Palabre version
| Code: |
class roomHistory:
def __init__(self,server):
self.server = server
self.name = "roomHistory"
self.history = {}
self.server.registerAction('roomSendToAllClients',self.name)
self.server.registerAction('clientJoinRoom',self.name)
def roomSendToAllClients(self,msg,nickName,room):
self.history[room.name].append(msg)
# ... And whatever you want to be logged
def clientJoinRoom(self,client,room):
client.clientSendMessage(self.history[room])
|
Of course you will have to adapt this to suit your needs.
You might want to loop over history per room etc etc checks if history is present and so on, but the base is here
Célio Conort Lonesome Palabre developper |