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.

Help with error [SOLVED]

Help for those learning Tcl or writing their own scripts.
Post Reply
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Help with error [SOLVED]

Post by cache »

Trying to make this display a part msg on user who parts chan but I'm confused with error part.

Code: Select all

bind part - * showgreet2

proc showgreet2 {nick uhost hand chan} {
global patch2
if {[file exist /$patch2/[lindex [split $uhost @] 1].txt]} {
set file5 [open /$patch2/[lindex [split $uhost @] 1].txt r+]
gets $file5 text
close $file5
putserv "PRIVMSG $chan :$text"
Error I get is...
[16:33] Tcl error [showgreet2]: wrong # args: should be "showgreet2 nick uhost hand chan"
Last edited by cache on Wed Mar 28, 2007 12:47 am, edited 1 time in total.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

(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 "".
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

Thanks rosc, apparently I always keep forgeting the last arg lol
Post Reply