i want to create a new class for my bots so they can send more data to the server without getting excess flood? can someone help me with how i can let them use the new class?
the class in urealirc conf would become:
class bots {
pingfreq 60;
maxclients 200;
sendq 30000;
};
but what do i need to add and where do i need to add it to let my bots use that class?
i got some mirc bots running beside my eggdrops that would need to use that class
how to create new class
Re: how to create new class
Classes are assigned in the allow block which uses ips and host names for assignment. You will need to place your allow blocks in order from least restrictive to most restrictive because allow blocks are read from bottom to top and connecting clients will be placed in the class defined in the first matching allow block.
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ
Re: how to create new class
so i just add another allow block then?
something like:
/* Allow info */
allow {
ip "*@*";
hostname "*@*";
maxperip 3;
class clients;
};
allow {
ip "*bot@*";
hostname "*bot@*";
maxperip 5;
class bots;
};
that would do the trick?
something like:
/* Allow info */
allow {
ip "*@*";
hostname "*@*";
maxperip 3;
class clients;
};
allow {
ip "*bot@*";
hostname "*bot@*";
maxperip 5;
class bots;
};
that would do the trick?
Re: how to create new class
Yes exactly right. Then any client connections where "bot" is their ident will be placed in the bot class. Everyome else would be placed in the clients class.
Configuration - https://www.unrealircd.org/docs/Configuration
FAQ - https://www.unrealircd.org/docs/FAQ
FAQ - https://www.unrealircd.org/docs/FAQ