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.

please someone find a solution ... Stop ... solution found.

Old posts that have not been replied to for several years.
Locked
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

please someone find a solution ... Stop ... solution found.

Post by NoZparker »

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.
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

hmmmmm No replies eh?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

NoZparker wrote:hmmmmm No replies eh?
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.
Have you ever read "The Manual"?
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

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
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

did you notice that pipe? (|) it's not there to make things look ugly...it actually has a use.
Have you ever read "The Manual"?
N
NoZparker
Voice
Posts: 34
Joined: Mon Feb 16, 2004 6:07 am

Post by NoZparker »

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.
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

NoZparker wrote:i'm sure that that could have been pointed out in the first place
That's what I tried to do by making that sentence bold :cry:
Have you ever read "The Manual"?
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

*g* user... must have been the transparent color :mrgreen:
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
Locked