*argh*
let me c.. I need a tcl script(?!) to restrict the number of the added users per owner/ master (- for example: an owner to be able to add only 3 users and 1 master, a master - 2 users -). um.. the other thing is: when u do a .match on +m/n u can see the number of his/her users.
do u have any ideas? =)
wwell Emilia
p.s. excuse my terrible english *giggle*
hmm guess you'll have to unbind the .adduser func first.
then make a new bind, and use the XTRA field in the userinfo to set some vars which the script can check up against...
Yes you can play witht he source code. This is provided, and is what needs compiling when you get eggdrop.
Read the licence (information ragarding this is available on the top of every C file) to understand that any changes you make must be disclosed as source code, should you decide to provide it to others. There are exceptions to this. Read the licence for details.
That said, I don't know what good this would do, as it would require a good portion of re-writting to take place to allow provisions for what you are after.
It is possible to script this in.
There are 2 possible ways to record this.
Record a number in the master/owners XTRA feild, stating what they have added. This is the quickest to test when he tries to add more users, but requires more code to make sure the number recorded is correct.
Record the master/owner's handles in the XTRA feild of every user added. While the slowest to test each time a user is added, it acuratly records who added who, and will save time changing the XTRA fields of the master/owner once the user is deleted.