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.

Bind problem

Old posts that have not been replied to for several years.
Locked
o
orbit

Post by orbit »


Hey all.

I've got a question for ya that i hope someone can answer. i have a script where i bind several actions in a specific chan, fx joins, quits, kicks and so on, its pretty straight forward until i wanted to incorporate the NICK bind, i just cant get that to work, what i want to do is simply log to a file when someone changes his/hers nick. The logging part is working for all the other binds, the thing thats bugging me is just the NICK part, it never triggers, .and yes i have read tcl-commands.doc :wink:. So if you got any input on this then please post.

regards.

/o
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

It's hard to say what's wrong with your code until you post it.

There aren't really any general tips I can give you, because in general the bind works.
o
orbit

Post by orbit »

yeah i know, binds dont usually cause any problems, nor does the other binds in my script, i tried a simple script just to check how the NICK binding worked, here's the script

bind nick - * action_proc

proc action_proc { nick uhost chan newnick } {
putlog "someone changed nicks"
}


but even this simple script wont trigger on a nick change, i might be missing the whole point of the NICK bind though :wink:, i thought that this particular bind should trigger when someone changes nicks and then give you a way of determining "before & after" nicks. ie the nick the user had and the new nick, but perhaps im just wrong :wink:

thanx

/o



User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Well, if you look in tcl-commands.doc you will see that your procedure isn't accepting the right arguments.

procname <nick> <user@host> <handle> <channel> <newnick>
o
orbit

Post by orbit »


hehehe, yeah =), silly me, of course it was wrong, well, i guess ive been starrying at it so long that i just didnt see the obvious, thanx for making me notice.

/O
Locked