Skip to content

Commit

Permalink
cleanup vars in do_act; meta inward task
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Sep 20, 2016
1 parent 00d759d commit 962654a
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 100 deletions.
14 changes: 13 additions & 1 deletion lib/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ exports.inward = {
act_default: inward_act_default,
act_not_found: inward_act_not_found,
validate_msg: inward_validate_msg,
warnings: inward_warnings
warnings: inward_warnings,
msg_meta: inward_msg_meta
}


Expand Down Expand Up @@ -198,3 +199,14 @@ function inward_warnings (ctxt, msg) {
})
}
}


function inward_msg_meta (ctxt, msg) {
Assert(ctxt.actmeta)

msg.meta$.pattern = ctxt.actmeta.pattern
msg.meta$.action = ctxt.actmeta.id
msg.meta$.plugin_name = ctxt.actmeta.plugin_name
msg.meta$.plugin_tag = ctxt.actmeta.plugin_tag
}

Loading

0 comments on commit 962654a

Please sign in to comment.