Store the warning message
function saveWarning(req, res) {
    var text = req.body.action === 'save' ? req.body.warning_text : '';

    dreadnot.setWarning(req.remoteUser, text, function(err) {
      if (err) {
        res.respond(err);
      } else {
        getWarning(req, res);
      }
    });
  }