[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xchat-perl
Subject:    Controlling Context
From:       Logan Hanks <logan () vt ! edu>
Date:       2000-05-27 1:20:19
[Download RAW message or body]

Hello,

    For the past two days I've been attempting to write a perl script for
xchat and have been constantly annoyed by the lack of control one has when
it comes to context.  For implementing command and message handlers, the
context is usually appropriate, and thus this is not a problem.  But I've
found that it's impossible to cleanly implement a timeout handler.  The
context when a timeout occurs seems to be unpredictable, and, what is worse,
uncontrollable.  For instance, I could possible save the server and channel
from which a user ran a command, and start a timeout handler from that
command, but how can I get the timeout handler to know what that server and
channel were?  And supposing I did know what channel and server to send to,
how do I use the send_raw function to send to a specific server?  There seems
to be no ability to send data to an arbitrary server.  Perhaps a better
explanation of how context is automatically setup by xchat would help me
more than anything, but it seems like there should be some methods in the
API with which I can control context.

logan

-
XChat-perl:    mailing list for XChat perl scripters
Archive:       http://mail.nl.linux.org/
Posted By:     Logan Hanks <logan@vt.edu>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic