mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Updated get-history to include channel-password if exists
This commit is contained in:
@@ -179,6 +179,7 @@ module.exports = function() {
|
||||
|
||||
socket.on('get_history', function(msg) {
|
||||
if(!msg.hasOwnProperty("channel") || !msg.hasOwnProperty("all") ||
|
||||
!msg.hasOwnProperty("pass") || typeof(msg.pass) != "string" ||
|
||||
typeof(msg.channel) != "string" || typeof(msg.all) != "boolean") {
|
||||
var result = {
|
||||
all: {
|
||||
@@ -197,7 +198,7 @@ module.exports = function() {
|
||||
socket.emit('update_required', result);
|
||||
return;
|
||||
}
|
||||
Chat.get_history(msg.channel, msg.all, socket);
|
||||
Chat.get_history(msg.channel, msg.all, socket, msg.pass);
|
||||
});
|
||||
|
||||
socket.on('chat', function (msg) {
|
||||
|
||||
Reference in New Issue
Block a user