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.

trying to get a script to run during mode changes

Old posts that have not been replied to for several years.
Locked
t
tradergt

trying to get a script to run during mode changes

Post by tradergt »

bind mode - * mode:set:chk

proc mode:set:chk {nick uh hand chan mode} {
puthelp "I got: $nick $uh $hand $chan $mode"
}

thats not working, I am getting

[21:32] Tcl error [mode:set:chk]: wrong # args: should be "mode:set:chk nick uh hand chan mode"

what i do?
User avatar
slennox
Owner
Posts: 593
Joined: Sat Sep 22, 2001 8:00 pm
Contact:

Post by slennox »

There is an extra argument "victim" (who the mode is being applied to) that comes after "mode".

proc mode:set:chk {nick uh hand chan mode victim} {

Refer to tcl-commands.doc
Locked