diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-05 14:16:36 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-07-21 20:59:35 +0100 |
commit | b06ef07f5d90a15d204c236cb452dbbdb7f9acd6 (patch) | |
tree | 7077da2405a6b8033e4b6e286d6d590d17253ed7 /src/parse.c | |
parent | 3c34fbcc87e3cb58d27cd104a84143c8d3cb3564 (diff) |
Add support for hidden command modules
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index 43187f0..b281883 100644 --- a/src/parse.c +++ b/src/parse.c @@ -527,10 +527,14 @@ recurse_report_messages(struct Client *source_p, const struct MessageTree *mtree unsigned int i; if (mtree->msg != NULL) - sendto_one(source_p, form_str(RPL_STATSCOMMANDS), + { + if (!(mtree->msg->flags & MFLG_HIDDEN) || + HasUMode(source_p, UMODE_ADMIN)) + sendto_one(source_p, form_str(RPL_STATSCOMMANDS), me.name, source_p->name, mtree->msg->cmd, mtree->msg->count, mtree->msg->bytes, mtree->msg->rcount); + } for (i = 0; i < MAXPTRLEN; ++i) if (mtree->pointers[i] != NULL) |