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.

tcl help :)

Help for those learning Tcl or writing their own scripts.
Post Reply
B
Bruticus
Voice
Posts: 6
Joined: Sun Oct 10, 2004 10:18 am

tcl help :)

Post by Bruticus »

This is the code

Code: Select all

bind mode - * mode:log
proc mode:log {nick host hand chan arg} {
  global botnick
  if {$chan == "#ZTO"} {
     putcmdlog "$nick: $arg"
     return 0
  }
}
and this is de error

Tcl error [mode:log]: wrong # args: should be "mode:log nick host hand chan arg"

could someone help me ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

one would think that in those 2 years you would have read tcl-commands.doc and paid a little more attention to BIND MODE (not to mention learning how to post code)
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use

Code: Select all

 tag when posting logs, code
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The Manual wrote: (14) MODE (stackable)
bind mode <flags> <mask> <proc>
proc-name <nick> <user@host> <handle> <channel> <mode-change> <victim>
[...]
Once the game is over, the king and the pawn go back in the same box.
B
Bruticus
Voice
Posts: 6
Joined: Sun Oct 10, 2004 10:18 am

Post by Bruticus »

Thank you very much
Post Reply