10 minutes chat history, limit of 20 messages

This commit is contained in:
Kasper Rynning-Tønnesen
2017-10-13 13:47:13 +02:00
parent 3b50d84af8
commit d8c1abfba9
7 changed files with 60 additions and 6 deletions

View File

@@ -131,6 +131,10 @@ module.exports = function() {
}
});
socket.on('get_history', function(msg) {
Chat.get_history(msg.channel, msg.all, socket);
});
socket.on('chat', function (msg) {
Chat.chat(msg, guid, offline, socket);
});