Allow normal users to use /chantrace.
The same information is already available via a combination of /who and /trace.
This commit is contained in:
parent
b279c69161
commit
28823cd3db
|
@ -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:
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue