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.

whats wrong with this?

Help for those learning Tcl or writing their own scripts.
Post Reply
.
.pt
Halfop
Posts: 71
Joined: Wed Nov 16, 2005 10:14 am

whats wrong with this?

Post by .pt »

bind part - "#channel *" part_chan1

proc part_chan1 {nick uhost hand channel} {
putserv "notice $nick :bla bla bla msg bla bla bla"
}


tks in advance.
User avatar
krimson
Halfop
Posts: 86
Joined: Wed Apr 19, 2006 8:12 am

Post by krimson »

it should be:

Code: Select all

bind part - "#channel *" part_chan1

proc part_chan1 {nick uhost hand channel {msg ""}} {
     putserv "notice $nick :bla bla bla msg bla bla bla"
}
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

From ~doc/tcl-commands.doc:
(9) 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.
Module: irc
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply