Final parts of command hooks, add before- and after- hooks to each command.

This commit is contained in:
nicm
2016-04-29 14:05:24 +00:00
parent c5443da2d3
commit 0d84fdd953
5 changed files with 86 additions and 10 deletions

View File

@ -49,6 +49,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_q *cmdq)
char *cause;
cmdq1 = cmdq_new(cmdq->client);
cmdq1->flags |= cmdq->flags & CMD_Q_NOHOOKS;
cmdq1->emptyfn = cmd_source_file_done;
cmdq1->data = cmdq;