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.

join

Old posts that have not been replied to for several years.
Locked
P
Paiakam

Post by Paiakam »

in one of my bots i have this..
putallbots "cometo $chan"

and in the other i have..
bind bot - cometo come:to

proc come:to {frombot cmd arg} {
global botnick
set chan [lindex $arg 0]
if {![onchan $botnick $chan]} {
putlog "(**) Join/$frombot: joining $chan"
channel add $chan
putquick "JOIN $chan"
}
}

but then i get..
<packiboy> [11:33] Tcl error [come:to]: illegal channel: #oinkoink

i dont know how to fix it, please help ;p

<font size=-1>[ This Message was edited by: Paiakam on 2001-10-04 12:09 ]</font>
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

can't use onchan for channels not added to the bot (cos it doesn't know about it, so can't make any calculations if anyone is on it or not, including itself). try this

proc come:to {frombot cmd arg} {
global botnick
set chan [lindex [split $arg] 0]
if {![validchan $chan]} {
putlog "(**) Join/$frombot: joining $chan"
channel add $chan
putquick "JOIN $chan"
}
}
P
Paiakam

Post by Paiakam »

thanks peterpan :grin:
Locked