Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
amark committed Apr 28, 2023
1 parent 8b1f055 commit bf15653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function(root){
}
try{ (cmd[msg.try]||cmd.any)(msg, peer); }catch(err){ mesh.say({dam: '!', err: "service error: "+err}) }
}
cmd.https = function(msg, peer){ var run, log;
cmd.https = function(msg, peer){ log;
if(!msg.email || !msg.domain){
mesh.say({dam: '!', err: 'Domain/email missing, use `location.hostname`!'});
return;
Expand All @@ -23,7 +23,7 @@ module.exports = function(root){
setTimeout(function(){ process.exit() },999);
});
}
cmd.update = function(msg, peer){ var run, log, pass;
cmd.update = function(msg, peer){ log, pass;
try{ pass = (''+fs.readFileSync(home+'/pass')).trim() }catch(e){}
if(!pass || (msg.pass||'').trim() != pass){ return }
fs.writeFile(examp+'/../updated', +new Date+'', function(){});
Expand Down

0 comments on commit bf15653

Please sign in to comment.