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.
Help for those learning Tcl or writing their own scripts.
Bruticus
Voice
Posts: 6 Joined: Sun Oct 10, 2004 10:18 am
Post
by Bruticus » Sun Aug 27, 2006 4:54 am
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 ?
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Sun Aug 27, 2006 5:17 am
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
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Aug 27, 2006 3:01 pm
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.
Bruticus
Voice
Posts: 6 Joined: Sun Oct 10, 2004 10:18 am
Post
by Bruticus » Mon Aug 28, 2006 12:17 pm
Thank you very much