egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with error [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Mon Mar 26, 2007 4:46 pm    Post subject: Help with error [SOLVED] Reply with quote

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

Code:

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Mar 26, 2007 5:24 pm    Post subject: Reply with quote

(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 "".
Back to top
View user's profile Send private message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Mon Mar 26, 2007 5:31 pm    Post subject: Reply with quote

Thanks rosc, apparently I always keep forgeting the last arg lol
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber