| View previous topic :: View next topic |
| Author |
Message |
vince164 Voice
Joined: 23 May 2006 Posts: 7
|
Posted: Tue May 23, 2006 9:45 pm Post subject: Help with error [SOLVED] |
|
|
hi i get this error
Tcl error [pub:help]: wrong # args: should be "pub:help nick chan"
what dose this mean?
here is the code
| Code: | bind pub - !remove pub:remove
bind pub - !help pub:help
proc pub:remove {nick chan} {
if { $chan == "#vhost" } {
putquick "PRIVMSG hostserv :DEL $nick"
putquick "PRIVMSG $chan :$nick 4your vhost has been removed, 8Thank you for stoping by #vhost have a good day"
return
}
}
proc pub:help {nick chan} {
if { $chan == "#vhost" } { putquick "PRIVMSG $chan :!Remove - will remove your vhost"
putquick "PRIVMSG $chan :!vhost hostname - will give you the vhost specified"
putquick "PRIVMSG $chan :would set your vhost to: I.got.my.own.vhost"
putquick "PRIVMSG $chan :The choosen vhost is permanent, only when your nick is registered, and will be enabled on identification with nickserv"
return
}
}
putlog "Loaded vhost script" |
Last edited by vince164 on Tue May 23, 2006 10:23 pm; edited 1 time in total |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue May 23, 2006 9:58 pm Post subject: |
|
|
Change:
| Code: | | proc pub:help {nick chan} |
to
| Code: | | proc pub:help {nick uhost hand chan} |
| Quote: | proc name args body
Args specifies the formal arguments to the procedure. It consists of a list, possibly empty, each of whose elements specifies one argument. Each argument specifier is also a list with either one or two fields. If there is only a single field in the specifier then it is the name of the argument; if there are two fields, then the first is the argument name and the second is its default value. |
Further details can be obtained from the Built-In Commands - proc manual page. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
vince164 Voice
Joined: 23 May 2006 Posts: 7
|
Posted: Tue May 23, 2006 10:06 pm Post subject: |
|
|
now i get this error
Tcl error [pub:help]: wrong # args: should be "pub:help nick uhost hand chan" |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue May 23, 2006 10:15 pm Post subject: |
|
|
Ok.. try this:
| Code: | | proc pub:help {nick uhost hand chan text} |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
vince164 Voice
Joined: 23 May 2006 Posts: 7
|
Posted: Tue May 23, 2006 10:23 pm Post subject: |
|
|
| thanks that workes! |
|
| Back to top |
|
 |
|