not quite finished

This commit is contained in:
Caleb James DeLisle
2015-01-30 18:12:20 +01:00
parent 0e44b10aeb
commit 84164123b6
13 changed files with 54 additions and 10 deletions

View File

@@ -142,14 +142,14 @@ console.log("[" + userPass + "] registered");
var sendMsgs = function () {
sendChannelMessage(ctx, chan, msg, function () {
chan.push(client);
try {
ctx.store.getMessages(chan.name, function (msg) {
ctx.store.getMessages(chan.name, function (msg) {
try {
sendMsg(msg, socket);
});
} catch (e) {
console.log(e.stack);
try { socket.close(); } catch (e) { }
}
} catch (e) {
console.log(e.stack);
try { socket.close(); } catch (e) { }
}
});
});
};
if (newChan) {