within a tcl as you prob know
chattr $nick flag ........ sets a flag global
while
chattr $nick flag $chan ........ sets a flag channel specific
or should do
so why does it not work
i have checked the variables and they are correct
i have tried it using constants (for testing) still and it sets the flag global rather then channel specific.
What am i not doing.
Someone must know the answer ...this is what i got :-
proc pub:addflag {nick uhost hand chan arg} {
global botnick
set who [lindex $arg 0]
chattr $who +v $chan
}
This is driving me insane.
NoZparker
Last edited by NoZparker on Mon Feb 16, 2004 9:17 pm, edited 2 times in total.
That's right. You might want to read the manual the next time you're stuck.
chattr <handle> [changes [channel]]
Description: changes the attributes for a user record, if you include any.
Changes are of the form '+f', '-o', '+dk', '-o+d', etc. If changes are
specified in the format of |<changes> <channel>, the channel-specific
flags for that channel are altered. You can now use the +o|-o #channel
format here too.
yes i have read the manual and the manual says as you pointed out
chattr <handle> [changes [channel]]
which in turn is
chattr $nick +v $chan
and it don't friggin work
that's why i posted it
just in case you get confused more
$nick is a variable for handle
+v is the flag trying to set as in changes
$chan is a variable for channel
i want to set a chan specific +v on a nick
i don't want it global
and if you can get it to work then you should be up there with the gods
i'm sure that that could have been pointed out in the first place
it's all too easy to to loose sight of other peoples knowledge base when you have perhaps forgotten more then i will ever know.
and again yes i did read the manual before coming here and i have read other docs.
now that it has been pointed out to me then yes it is obvious.
but not to worry only wasted 1 day on 1 pipe.
btw ... slimhome in #egghelp on efnet told me the prob as soon as i mentioned it in the channel.
That boy will go far.