egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

tcl help :)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Bruticus
Voice


Joined: 10 Oct 2004
Posts: 6

PostPosted: Sun Aug 27, 2006 4:54 am    Post subject: tcl help :) Reply with quote

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
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Aug 27, 2006 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sun Aug 27, 2006 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bruticus
Voice


Joined: 10 Oct 2004
Posts: 6

PostPosted: Mon Aug 28, 2006 12:17 pm    Post subject: Reply with quote

Thank you very much
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber