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.

little newbie problem

Old posts that have not been replied to for several years.
Locked
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

little newbie problem

Post by Pitchat »

Hi i have a very simple part script it works fine but i have an error on partyline that i cant get rid of any help ? :-)

Code: Select all

bind part - "*" do_part 

proc do_part {nick host hand chan } { 
putserv "NOTICE $nick : Merci de ta présence parmis nous et à bientôt sur #Aide-Moi.Net" 
return 0 
}
here`s the error

<Aide-moi> [19:33] Tcl error [part_auth]: wrong # args: should be "part_auth nick host hand chan"

thanks
Pitchat
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

(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
Consult your tcl-commands.doc
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: little newbie problem

Post by user »

ok Darkj, you beat me to it :) I spent too much time looking up the url for the online version of tcl-commands.doc :P
Have you ever read "The Manual"?
P
Pitchat
Op
Posts: 122
Joined: Tue Feb 18, 2003 11:24 pm
Location: Hebertville Quebec Canada
Contact:

Post by Pitchat »

thanks the bug was the host and uhost thing ,i juste replace the host in the code by uhost and it work juste fine

yet another satisfied customer ;P

Pitchat
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

Post by Darkj »

ok Darkj, you beat me to it I spent too much time looking up the url for the online version of tcl-commands.doc
ultraedit and easy server access can be your best friend :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Pitchat wrote:thanks the bug was the host and uhost thing ,i juste replace the host in the code by uhost and it work juste fine

yet another satisfied customer ;P

Pitchat
the host has nothing to do with the bug, your proc was missing 1 more var which is the part-reason.
so it should be {nick host hand chan reason}
Locked