| View previous topic :: View next topic |
| Author |
Message |
Bruticus Voice
Joined: 10 Oct 2004 Posts: 6
|
Posted: Sun Aug 27, 2006 4:54 am Post subject: tcl help :) |
|
|
This is the code
| Code: |
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 ? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Aug 27, 2006 5:17 am Post subject: |
|
|
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] tag when posting logs, code |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Aug 27, 2006 3:01 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Bruticus Voice
Joined: 10 Oct 2004 Posts: 6
|
Posted: Mon Aug 28, 2006 12:17 pm Post subject: |
|
|
| Thank you very much |
|
| Back to top |
|
 |
|