set g_pickupchan "#channel"
bind mode - "% +v" g_delvoices
proc g_delvoices {nick host handle channel mode victim} {
global g_pickupchan
if { [matchattr $hand H] } {
return 0
}
if {$channel==$g_pickupchan} {
putserv "MODE $g_pickupchan -v $victim"
}
}
i want this: if someone have flag H .. if give voice to a user then the user will be voiced.. if someone give voice bot devoice the user.. how i can do it..?
Check your channel settings, or see if you have superbitch.tcl settings on that channel. look for +bitch on .chaninfo #channel_name And there is also a chance that the user could have been given the devoice flag check the .whois <handle> on the DCC/Chat telnet partyline.
I wonder why you use 2 if conditions in such a trivial issue. Also using pushmode is considered more spam proof, because it can accumulate mode requests which might arise in a join-flood... these often arise on net rejoins.
These 4 lines of code would be enough within the proc.
Also about the person who grants voice... if the person who has the flag H voices a person, it is fine, in all other (all is in, even permanent owner is not recognized) cases it should devoice the person?!