From 28823cd3dbef5d148d1cfe12694f1e8029f6feaf Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 8 Nov 2008 01:28:16 +0100 Subject: [PATCH] Allow normal users to use /chantrace. The same information is already available via a combination of /who and /trace. --- help/Makefile.in | 2 +- modules/m_etrace.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/help/Makefile.in b/help/Makefile.in index 95adfc8..6c487bc 100644 --- a/help/Makefile.in +++ b/help/Makefile.in @@ -16,7 +16,7 @@ SYMLINKS= topic accept cmode admin names links away whowas \ version kick who invite quit join list nick oper part \ time credits motd userhost users whois ison lusers \ user help pass error challenge knock ping pong \ - cprivmsg cnotice map trace + cprivmsg cnotice map trace chantrace all: build: diff --git a/modules/m_etrace.c b/modules/m_etrace.c index 35e93c1..be65ab6 100644 --- a/modules/m_etrace.c +++ b/modules/m_etrace.c @@ -52,7 +52,7 @@ static int mo_etrace(struct Client *, struct Client *, int, const char **); static int me_etrace(struct Client *, struct Client *, int, const char **); -static int mo_chantrace(struct Client *, struct Client *, int, const char **); +static int m_chantrace(struct Client *, struct Client *, int, const char **); static int mo_masktrace(struct Client *, struct Client *, int, const char **); struct Message etrace_msgtab = { @@ -61,7 +61,7 @@ struct Message etrace_msgtab = { }; struct Message chantrace_msgtab = { "CHANTRACE", 0, 0, 0, MFLG_SLOW, - {mg_ignore, mg_not_oper, mg_ignore, mg_ignore, mg_ignore, {mo_chantrace, 2}} + {mg_ignore, {m_chantrace, 2}, mg_ignore, mg_ignore, mg_ignore, {m_chantrace, 2}} }; struct Message masktrace_msgtab = { "MASKTRACE", 0, 0, 0, MFLG_SLOW, @@ -213,7 +213,7 @@ do_single_etrace(struct Client *source_p, struct Client *target_p) } static int -mo_chantrace(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) +m_chantrace(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { struct Client *target_p; struct Channel *chptr;