diff options
Diffstat (limited to 'lib/index.js')
| -rw-r--r-- | lib/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/index.js b/lib/index.js index 781ac04..d0f5e76 100644 --- a/lib/index.js +++ b/lib/index.js @@ -103,6 +103,11 @@ site.init = function(){ tag: sanitize(req.body.tag) || 'plop', remote_addr: req.ip || '127.0.0.1', }).then(function(image){ + if (process.env.SEND_ASCII && req.body.ascii && req.body.ascii.length < 800 * 100) { + var stream = fs.createWriteStream("/home/panke/irc/irc.asdf.us/#ascii/in", {flags:'a'}) + stream.write(req.body.ascii + "\n") + stream.end() + } res.json({ success: true, size: req.file.size, |
