This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

script not working help

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
.
.pt
Halfop
Posts: 71
Joined: Wed Nov 16, 2005 10:14 am

script not working help

Post by .pt »

it works on join but on part it says this..
Tcl error [part_chan1]: wrong # args: should be "part_chan1 nick uhost hand channel"

Code: Select all

#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"
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

From Tcl-commands.doc:
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.
Post Reply