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.

on join script not working

Old posts that have not been replied to for several years.
Locked
a
animus

Post by animus »

Why isn't this script not working on my eggdrop 1.6.8???

bind join - #chan1 chan1_join
proc chan1_join {nick uhost hand chan} {
puthelp "NOTICE $nick :Hello $nick! Welcome to $chan!"
}
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

ur code is:
bind join - #chan1 chan1_join
the tcl-commands.doc that ships with eggdrop tar files specifies the following syntax:
bind join <flags> <mask> <proc>
where <mask> in the bind is matched against "#channel nick!user@host" and can contain wildcards.

If u compare ur code to the real syntax u will notice that ur only using "#chan1" as a mask without the "nick!user@host". If I am not mistaken you should use wildcards to match against "#chan1 *"
Please correct me if I am wrong guys as I am still learning about TCL. I hope I am right about my answer, if not then sorry Animus :smile:

P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

yup, you're 100% correct

/me likes ppl who rtfm
User avatar
z_one
Master
Posts: 269
Joined: Mon Jan 14, 2002 8:00 pm
Location: Canada

Post by z_one »

lol Petersen. Glad I could help and that my answer turned out to be correct.
This will encourage me to participate further more in the forum discussions. However the real merit goes to Slennox, PPSlim, you and many others - can't name them all :smile: - for creating this gr8 forum !

z_one


<font size=-1>[ This Message was edited by: z_one on 2002-02-18 11:18 ]</font>

<font size=-1>[ This Message was edited by: z_one on 2002-02-18 11:19 ]</font>
Locked