From 3998998871e2e34d314bcc94bebd972084da24f5 Mon Sep 17 00:00:00 2001 From: XeonCore Date: Sun, 12 Oct 2014 16:15:03 +1100 Subject: [PATCH] Don't save when running in public mode --- src/client.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client.js b/src/client.js index 657fa4f7..20f3efb4 100644 --- a/src/client.js +++ b/src/client.js @@ -323,6 +323,11 @@ Client.prototype.quit = function() { var timer; Client.prototype.save = function(force) { var client = this; + var config = Helper.getConfig(); + + if(config.public) { + return; + } if (!force) { clearTimeout(timer);