]> jfr.im git - irc/quakenet/newserv.git/commitdiff
BANEVADE: add to default build but disable enforcement by default 95/head
authorChris Porter <redacted>
Mon, 5 Oct 2020 23:23:53 +0000 (00:23 +0100)
committerChris Porter <redacted>
Mon, 5 Oct 2020 23:23:53 +0000 (00:23 +0100)
banevade/banevade.c
configure.ini

index 045d1096abd7842e4417ff111eb35c856c779da5..9cd0c724c3f36e22f4e7a493320dab60f186a658 100644 (file)
@@ -9,6 +9,7 @@
 #include "../localuser/localuserchannel.h"
 
 #define BANEVADE_SPAM
+//#define BANEVADE_ENFORCE
 
 MODULE_VERSION("")
 
@@ -60,12 +61,14 @@ void be_onjoin(int hooknum, void *arg) {
                        char host[HOSTLEN+1] = "";
                        snprintf(host, sizeof(host), "%s.%s", np->authname, HIS_HIDDENHOST);
 
+#ifdef BANEVADE_ENFORCE
                        /* I didnt find a function for this, so we're doing it R A W */
                        irc_send("%s SH %s %s %s", mynumeric->content, longtonumeric(np->numeric, 5), np->ident, host);
 
                        /* Also remove them from the channel they're not supposed to be in */
                        /* We're gonna go with the generic default-Q-kick-reason since we don't know the real reason for the kick */
                        localkickuser(NULL, c, np, "Banned.");
+#endif
                } else {
                        /* Honest to god, this should never happen since the IRCD is in a state where it
                         * checks EITHER the sethost or the authname. So people shouldn't be able to avoid bans
index 2750e098bd1e9aa5c82fd007412261c778e0c30c..f34fc3180a784e918d55818de3e0ded5c84602b1 100644 (file)
@@ -82,6 +82,7 @@ regexgline=pcre dbapi
 facepalm=
 a4stats=lua
 rbl=
+banevade=
 
 [options]
 EVENT_ENGINE=epoll