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 

BIND join and BIND part what is wrong??

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


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sat Apr 25, 2015 8:24 pm    Post subject: BIND join and BIND part what is wrong?? Reply with quote

BIND join works perfect, but NOT BIND part.

Code:
bind join - * join_join
bind part - * part_part
set chan1 "#chan1"
set chan2 "#chan2"

 proc join_join {nick uhost hand chan} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2  "$nick has joined $chan1"
} else {
return
}}

proc part_part {nick uhost hand chan} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2  "$nick has left  $chan1"
} else {
return
}}

Tcl error [part_part]: wrong # args: should be "part_part nick uhost hand chan"
I tried renamed procedures by others, but always gives me error BIND part.
_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Sat Apr 25, 2015 8:59 pm    Post subject: Re: BIND join and BIND part what is wrong?? Reply with quote

juanamores wrote:

Code:

...
proc part_part {nick uhost hand chan} {
...


Tcl error [part_part]: wrong # args: should be "part_part nick uhost hand chan"
...


Go here:
http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html

and text search to find
bind part
to locate the section about that bind.
Read that section, and then compare to your line quoted above.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sat Apr 25, 2015 9:14 pm    Post subject: Re: BIND join and BIND part what is wrong?? Reply with quote

willyw thank you I already fixed. Very Happy
_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
Back to top
View user's profile Send private message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Sat May 02, 2015 12:45 pm    Post subject: Reply with quote

to me I me work quite so :
Quote:

[12:41] <@JulieTh> Arnold_X-P has joined #tcls
[12:43] <@JulieTh> Arnold_X-P has left #tcls

Code:

bind join - * join_join
bind part - * part_part
set chan1 "#tcls"
set chan2 "#bom"

 proc join_join {nick uhost hand chan} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2  "$nick has joined $chan1"
} else {
return
}}

proc part_part {nick uhost hand chan {msg ""}} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2  "$nick has left  $chan1"
} else {
return
}}

_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Sun May 03, 2015 12:53 pm    Post subject: Reply with quote

Arnold_X-P wrote:
to me I me work quite so :

Yes, Arnold_X-P, to give more compatibility to the process, there was a syntax that did not know, until willyw taught me.
Quote:
New Tcl procs should be declared as
proc partproc {nick uhost hand chan {msg ""}} { ... }
for compatibility.

_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
Back to top
View user's profile Send private message
Arnold_X-P
Master


Joined: 30 Oct 2006
Posts: 221
Location: DALnet - Trinidad - Beni - Bolivia

PostPosted: Thu May 07, 2015 7:35 pm    Post subject: Reply with quote

when you give or solve please juanamores snag in the web the solution do not say that it solves
so we all learn, and see that of that the forum talks each other to learn

ok juanamores !!!!!

no seas un lamer pega la solucion y no esperes a que otro lo solucione Twisted Evil
_________________
Very Happy thanks to that they help, that others learn Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
juanamores
Master


Joined: 15 Mar 2015
Posts: 317

PostPosted: Thu May 07, 2015 8:18 pm    Post subject: Reply with quote

Arnold_X-P wrote:

no seas un lamer pega la solucion y no esperes a que otro lo solucione Twisted Evil

Siempre pego mis soluciones, aun cuando no me lo solicitan, en este caso la solución la encontró willyw y el puso el enlace a la misma.
Todos los créditos son de willyw, por eso no me pareció necesario volver a pegar el contenido del enlace que está en este post.
Me parece algo ofensivo y exagerado tu comentario llamandome lamer.

Every time I've solved a question, I shared all my solutions, without I asked. In this case, the solution was found by willyw, and put a link to it.
All credits are willyw, so it did not seem necessary to paste the contents of the link found in this post.
I find something offensive and exaggerated your comment calling me lamer.
_________________
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks Smile
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