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.

chanlist fails when bot just joined channel

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

Post by ascent »

Hi,

I want to have the chanlist of a channel which the bot just joined ASAP.
What's the best way to do so, since the bot doesn't get it immediately (it's empty just after join)
I tried to get it into some loop with after and (u)timer.
[21:40] TCL error [pub:slaap]: too many nested calls to Tcl_EvalObj (infinite loop?)

That error appears, or it hangs itself :smile:

Anyone a good solution?
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

best way would be a raw binding for 315 (end of /WHO list) to trigger whatever proc you wanna use the chanlist in.

[edit]

you might have to rebind the inbuilt raw 315 binding to execute before your own one though, ie
unbind raw - 315 *raw:irc:315
bind raw - 315 yourproc
proc yourproc {f k a} {*raw:irc:315 $f $k $a ; yourcode}

[/edit]

<font size=-1>[ This Message was edited by: Petersen on 2002-01-27 16:56 ]</font>
a
ascent

Post by ascent »

On 2002-01-27 16:51, Petersen wrote:
best way would be a raw binding for 315 (end of /WHO list) to trigger whatever proc you wanna use the chanlist in.
How can I achieve that?
a
ascent

Post by ascent »

unbind raw - 315 *raw:irc:315

That line...
Eggdrop crashes on that when I .rehash it from partyline when there is no binding...
Howto avoid it?
Works perfectly for the rest!
Thanks!
Locked