From 9f682a985b395e46c1d861fdd57fd46db4e46d9e Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Tue, 8 Mar 2016 11:43:25 +0100 Subject: [PATCH] lvl should not fail on non-existant channels --- storage/lvl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/lvl.js b/storage/lvl.js index 84ff57862..1ddfbe97c 100644 --- a/storage/lvl.js +++ b/storage/lvl.js @@ -38,7 +38,7 @@ var getMessages = function (db, channelName, msgHandler) { if (i < index) { again(i+1); } })); }; - again(0); + if (index > -1) { again(0); } }); };