| View previous topic :: View next topic |
| Author |
Message |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Apr 22, 2006 10:36 am Post subject: script not working help |
|
|
it works on join but on part it says this..
| Quote: |
Tcl error [part_chan1]: wrong # args: should be "part_chan1 nick uhost hand channel"
|
| Code: |
#joins configuration
bind join - "#chan1 *" join_chan1
proc join_chan1 {nick uhost hand channel} {
putserv "notice $nick :joinmsg"
}
#parts configuration
bind part - "#chan1 *" part_chan1
proc part_chan1 {nick uhost hand channel} {
putserv "notice $nick :partmsg"
}
putlog "JoinPartNotice Loaded"
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sat Apr 22, 2006 11:04 am Post subject: |
|
|
From Tcl-commands.doc:
| Quote: | PART (stackable)
bind part <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <msg>
Description: triggered by someone leaving the channel. The mask is
matched against "#channel nick!user@host" and can contain
wildcards. If no part message is specified, msg will be set
to "".
New Tcl procs should be declared as
proc partproc {nick uhost hand chan {msg ""}} { ... }
for compatibility. |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|