]> jfr.im git - irc/freenode/solanum.git/commitdiff
Allow normal users to use /chantrace.
authorJilles Tjoelker <redacted>
Sat, 8 Nov 2008 00:28:16 +0000 (01:28 +0100)
committerJilles Tjoelker <redacted>
Sat, 8 Nov 2008 00:28:16 +0000 (01:28 +0100)
The same information is already available via a
combination of /who and /trace.

help/Makefile.in
modules/m_etrace.c

index 95adfc85204b502491bd27a4f9fa188c018c6d1e..6c487bc0400f92f7a126c754b727a1704cd05b89 100644 (file)
@@ -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:
index 35e93c1f4597087788f12afa80739be14a50f891..be65ab66ca3fb8fcb665be939451858cec90f1b5 100644 (file)
@@ -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;