This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

um.. lookin' for a tcl =)

Old posts that have not been replied to for several years.
Locked
w
whatever

um.. lookin' for a tcl =)

Post by whatever »

*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*

*whisper*: tnx in advance =)
f
fudded

Post by fudded »

sorry AFAIK an owner can do what he wants, maybe you should restrict the ppl who you give +n to


Fudded
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

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...
Elen sila lúmenn' omentielvo
w
whatever

Post by whatever »

unf.. can I play with the source or s.th. else?!

wwell Emilia
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

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.
Locked