PDA

View Full Version : IOjTQ REQ/QUESTION


Delight
12-27-2004, 11:01 AM
Hi all.
Is it possible to change script to move user who fail quota back to trial, for new trial period.
I have change following lines in script, but i have not done any test, wait for end of this year/month.
--------------------------------------------------------------------
if { $A_tq == "quota"} {
if { $iojTQ(quota_action) == 1} {
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user Trial"
--------------------------------------------------------------------

U think it will work or have i missed some important thing?
Thanx in advance
Delight

jeza
12-27-2004, 12:55 PM
u can do it like this


set iojTQ(quota_action) 3 ;#if fail quota 0=nothing, 1=change to flag iojTQ(quota_move_flag), 2=delete, 3=chgrp to iojTQ(trial_group)

---
if { $A_tq == "quota"} {
if { $iojTQ(quota_action) == 1} {
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHANGE $A_user FLAGS +$iojTQ(quota_move_flag)"
}
if { $iojTQ(quota_action) == 2} {
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE DELUSER $A_user"
}
if { $iojTQ(quota_action) == 3} {
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user $iojTQ(trial_group)"
}
}

Delight
12-27-2004, 02:26 PM
Thanx for fast answer, good script and verry good support.
I will try that, and hopefully it will work next change of month.
/Delight

alturismo
12-28-2004, 08:17 AM
might will get probs due scripts cant find date added ....

Delight
12-28-2004, 01:11 PM
Yes, U may be right about that.
Also only add to group trial will not move from old group, only add Trial group to user.
To change i must use.
SITE CHGRP User Oldgroup Trialgroup
maybee
iojTQ:SendFTP nick uhost hand $iojTQ(admin_chan) "SITE CHGRP $A_user $group $iojTQ(trial_group)"
will work.

But how to add new trial date?
/D

jeza
12-28-2004, 04:51 PM
yup if moving to trial_group user will be deleted on first check because date added not found.

"SITE CHGRP $A_user $group $iojTQ(trial_group)" -> nope, because $group=no such var in iojTQ:SendFTP

i am not at home atm. i will be back on 03.01.2005.
drop me a msg on 04.01. on mirc and i will do some changes in your version so u have support for move user back to trial and new date added line in your syslog
;)