From e0e323754b49667b108c3d7021b038882b268340 Mon Sep 17 00:00:00 2001 From: theory Date: Wed, 26 Mar 2014 17:51:51 -0600 Subject: [PATCH] ugh --- shots.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shots.js b/shots.js index 26c6d523..75400b23 100644 --- a/shots.js +++ b/shots.js @@ -168,6 +168,7 @@ module.exports = require('theory') } shot.spray.transform = function(g,m,d){if(d){d()}} shot.spray.action = function(m){ + console.log('spray', m); if(!m || !m.how){ return } var where = a.text.is(m.where)? m.where : m.where.at; if(m.how.gun === 3){ @@ -188,7 +189,7 @@ module.exports = require('theory') var done = function(){ theory.on(a.gun.event+'.shot').emit(m.what,g); g = a.fns.is(g)? g : function(){ return a.gun.clip[where] || {} } - store.set(where, g(), null, function(){ + store.set(where, g(), null, function(){ // TODO: Only save to S3 if there is a change in data after HAM. if(opt.src && opt.src.reply){ m.when = a.num.is(a(m,'what._.#'))? m.what._['#'] : m.when; m.how.gun = -(m.how.gun||1);