[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: delay in perlscripts?



Matt Heckaman writes:

> 1. CTCP bot INVITE
> 2. sleep(3)
> 3. JOIN #channel
> 4. CTCP bot OP

No, you need to add a handler for the actual invite message. At some
point, sleep will not cover the lag, and you will lose. Check the raw
log window to see what you need to dispatch on.

Now, a question for the rest of the group. What do we do when sleep()
is replaced by sub_which_performs_several_seconds_of_computation()?

> 1. sleep(3)
> 2. CTCP bot INVITE
> 3. JOIN #channel
> 4. CTCP bot OP

I sort of suspect that IRC::blah is just pushing commands onto a queue
that gets flushed whenever the code dips back into XChat. But I don't
know the internals.

-- 
There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There
are no ABSOLUTE STATEMENTS. I'm very probably wrong. -- BSD fortune(6)
-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/lists/
Posted By:     Decklin Foster <decklin@red-bean.com>