del user with specific channel flag

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

del user with specific channel flag

Post by ultralord »

my proc:

Code: Select all

bind part - * flag_part

proc flag_part {nick uhost handle channel msg } {
 global flagchannel mychannel
   if { [matchattr $handle V] } {
deluser $nick -V
}
} 
How i can do that for Only channel flag.. If someone Have Only one flag ( V ) on channel flag then will be deleted.. but if someone have this flag Global flag then dont del that nick..
n
nml375
Revered One
Posts: 2861
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

try something like this:

Code: Select all

matchattr $handle -V&+V $channel
Also, why the -V with deluser? Should only be "deluser <handle>"
NML_375
User avatar
ultralord
Master
Posts: 255
Joined: Mon Nov 06, 2006 6:52 pm

Post by ultralord »

yes -V isnt nesessery :P
thnx.. i am gonna test it
Post Reply