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.

help on my autovoice script

Old posts that have not been replied to for several years.
Locked
D
Danny^Boy

help on my autovoice script

Post by Danny^Boy »

is it possible to get this to still delete the user if it got +g on the chan the command is done on?
now it will only do -g since the user got +g on the chan

set flags "a OR d OR e OR f OR g OR k OR m OR n OR o OR q or v"
foreach channel [channels] {
if {[matchattr $who |$flags $channel]} {
set flags "-g"
chattr $who |$flags $chan
putserv "NOTICE $nick :\002$who\002 has been deleted from autovoice on $chan."
putserv "MODE $chan -v $who"
save
return 0
}
}
deluser $who
putserv "NOTICE $nick :\002$who\002 has been deleted from autovoice on $chan."
putserv "MODE $chan -v $who"
save
return 1
}
Locked