how to create new class

These are old archives. They are kept for historic purposes only.
Post Reply
skywalker
Posts: 16
Joined: Mon Jan 02, 2012 1:57 pm

how to create new class

Post by skywalker »

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
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: how to create new class

Post by katsklaw »

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.
skywalker
Posts: 16
Joined: Mon Jan 02, 2012 1:57 pm

Re: how to create new class

Post by skywalker »

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?
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: how to create new class

Post by katsklaw »

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.
Post Reply