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.
Help for those learning Tcl or writing their own scripts.
pektek
Halfop
Posts: 55 Joined: Sat Jul 01, 2023 4:51 pm
Post
by pektek » Tue Nov 05, 2024 5:11 am
error message
Tcl error [join:chan]: illegal channel: #sohbet
Code: Select all
set joinchan "#kelime"
set chantojoin "#Sohbet"
bind join -|- * join:chan
proc join:chan {nick host hand chan} {
global joinchan chantojoin
if {[string equal -nocase $joinchan $chan] && ![onchan $nick $chantojoin]} {
putquick "SAJOIN $nick $chantojoin"
}
}
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Tue Nov 05, 2024 5:44 am
Your eggdrop is not in #sohbet (chantojoin) so the [onchan $nick $chantojoin] test can't work.
Eggdrop can only work with chans it's in (except for validchan).
pektek
Halfop
Posts: 55 Joined: Sat Jul 01, 2023 4:51 pm
Post
by pektek » Tue Nov 05, 2024 9:54 pm
how can we fix it ?
CrazyCat
Revered One
Posts: 1304 Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:
Post
by CrazyCat » Wed Nov 06, 2024 3:29 am
You can't fix it by code. The only way is to have the eggdrop in the "chantojoin" channel.
pektek
Halfop
Posts: 55 Joined: Sat Jul 01, 2023 4:51 pm
Post
by pektek » Sat Nov 23, 2024 7:16 pm
Thank you CrazyCat