Allow normal users to use /chantrace.

The same information is already available via a
combination of /who and /trace.
This commit is contained in:
Jilles Tjoelker 2008-11-08 01:28:16 +01:00
parent b50a3163c3
commit 5807e0beaa
2 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ SYMLINKS= topic accept cmode admin names links away whowas \
version kick who invite quit join list nick oper part \ version kick who invite quit join list nick oper part \
time credits motd userhost users whois ison lusers \ time credits motd userhost users whois ison lusers \
user help pass error challenge knock ping pong \ user help pass error challenge knock ping pong \
cprivmsg cnotice map trace cprivmsg cnotice map trace chantrace
all: all:
build: build:

View file

@ -52,7 +52,7 @@
static int mo_etrace(struct Client *, struct Client *, int, const char **); static int mo_etrace(struct Client *, struct Client *, int, const char **);
static int me_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 **); static int mo_masktrace(struct Client *, struct Client *, int, const char **);
struct Message etrace_msgtab = { struct Message etrace_msgtab = {
@ -61,7 +61,7 @@ struct Message etrace_msgtab = {
}; };
struct Message chantrace_msgtab = { struct Message chantrace_msgtab = {
"CHANTRACE", 0, 0, 0, MFLG_SLOW, "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 = { struct Message masktrace_msgtab = {
"MASKTRACE", 0, 0, 0, MFLG_SLOW, "MASKTRACE", 0, 0, 0, MFLG_SLOW,
@ -213,7 +213,7 @@ do_single_etrace(struct Client *source_p, struct Client *target_p)
} }
static int 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 Client *target_p;
struct Channel *chptr; struct Channel *chptr;