PDA

View Full Version : bug in gadmin system?


ProlyX
06-21-2003, 03:53 AM
Hi peeps..

so i gave a grp slots.. (e.g. 5usr 4leech slots)...
then i add a user.... then the grp has 4 4 slots... its right.. but if i delete the user (the gadmin of this grp of course..) he didnt get his slot back...

then with the leech slots.. if i gave someone leech grp has 3 leech slots .. fine its right but if i gave someone ratio 3 he takes a leech slot, too.. not very fine :)

Zer0Racer
06-21-2003, 09:22 AM
I tested this with 4.9.4r and have come to the conclusion that something is indeed wrong. I've added 'testgroup' and 'testgadmin' and given testgroup 5 group slots and 5 leech slots.

Inside groupfile:
USERS 1
SLOTS 5 5

Gadmin adduser: site adduser testuser testpass *@*
USERS 2
SLOTS 4 5

So far so good...


To confirm bug posted above by ProlyX...
No slot given back to group when gadmin dels user:
USERS 1
SLOTS 4 5

I restore the group slots: site change testgroup groupslots 5 5
USERS 1
SLOTS 5 5

Gadmin adduser again. SLOTS 4 5
Gadmin changes user's ratio to leech.
USERS 2
SLOTS 4 4

Now here is one thing I need to know. Does changing user's ratio to leech (using a leech slot) mean that group gets one regular group slot back? Because now adding one user and giving him leech decreases the total number of slots by two. From 5 5 to 4 4.

To confirm bug posted above by ProlyX... Changing user's ratio back to 1:3 results into this (leech slots decrease by one):
USERS 2
SLOTS 4 3

zpr
06-21-2003, 12:08 PM
confirmed, same here :/

darkone
06-22-2003, 12:46 PM
"Leech slots" are not given back. Why?

1. Prevents group admin from cycling slot between two or more users
2. Prevents admin from transfering slots from group to another (in case he is administrator for two or more groups)