Original code here/*
* ==================================================================
* Module: delaylist.c
* Author: w00t <[email protected]>
* Version: 1.0.0
* Written For: Stskeeps
* Licence: GPL
* Description: Delays list for newly connected clients.
* ==================================================================
*/
*/
If anyone could port it, it would be great.
====================
[Gottem EDIT 20181104] Current information should probably be displayed in the first post and not somewhere down the thread. :>
k4be made some contributions in regards to the newly added fake channel listing functionality. I added a gline-on-join-fakechan thing myself afterwards. =]
The config block is a lil different than you described, but it does the same. Add a new top level block (so not within set):
Code: Select all
listrestrict {
connectdelay 60; // How long a client must have been online for
needauth 1; // Besides connectdelay, also require authentication w/ services
authisenough 1; // Don't check connectdelay if user is identified OR exempt from authentication entirely
fakechans 1; // Send a fake channel list if connectdelay and/or needauth checks fail
glinetime 7d; // For channels with gline set to 1, use 0 for permanent bans
fakechannel {
// Only the name is required
name "#honeypot";
//topic "ayy lmao"; // Defaults to "DO NOT JOIN"
//users 50; // Defaults to 2 users, must be >= 1
//gline 0; // Defaults to 0
};
fakechannel {
name "#fakelol";
topic "top kek";
users 10;
gline 1; // G:Line won't kick in if connectdelay and needauth checks are satisfied, or if the user has a 'fakechans' exception
};
exceptions {
all "user@*";
connect "[email protected]"; // Only require auth
auth "*@123.123.123.*"; // Only require connectdelay
fakechans "ayy@lmao"; // Don't send a fake channel list, just prevent sending of the legit one
// You can also specify multiple types for the same mask:
auth "need@moar";
fakechans "need@moar";
// This user would only need to wait <connectdelay> seconds and won't get a fake channel list at all
};
};
As usual with my mods, U:Lines, opers and servers are exempt from any restrictions.
Get it here