| View previous topic :: View next topic |
| Author |
Message |
ben Voice
Joined: 16 Jun 2007 Posts: 4
|
Posted: Sun Jun 24, 2007 10:19 am Post subject: wrong # args: should be |
|
|
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 |
|
 |
ap Halfop
Joined: 09 Jun 2006 Posts: 44
|
Posted: Sun Jun 24, 2007 11:23 am Post subject: |
|
|
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 |
|
 |
|