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 

wrong # args: should be

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


Joined: 16 Jun 2007
Posts: 4

PostPosted: Sun Jun 24, 2007 10:19 am    Post subject: wrong # args: should be Reply with quote

No idea why, im getting this error:

Code:
 Tcl error [msg:helloonrequest]: wrong # args: should be "msg:helloonrequest nick uhost handle channel arg"


And here's the src:
Code:
bind msg - sayhellotome msg:helloonrequest

proc msg:helloonrequest { nick uhost handle channel arg } {
   putserv "NOTICE $nick :Hello"
}


Any help will be much appreciated.
Back to top
View user's profile Send private message
ap
Halfop


Joined: 09 Jun 2006
Posts: 44

PostPosted: Sun Jun 24, 2007 11:23 am    Post subject: Reply with quote

if you're after /msg command then MSG bind required 4 arguments and you're using 5

if you're after pub bind and you like to use the public command then you're using the wrong bind

Code:
bind pub - !sayhellotome msg:helloonrequest

proc msg:helloonrequest { nick uhost hand chan text } {
   putserv "NOTICE $nick :Hello"
}


and type !sayhellotome

If you want on join hello by your bot then use JOIN BIND

Code:
bind join - *  msg:helloonrequest
proc msg:helloonrequest { nick uhost hand chan } {
   putserv "NOTICE $nick :Hello"
}
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