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

RE: FW: Is it possible to change a param in a handler ?




On 11-Aug-2000 Stephane Rosa wrote:
> 
> On 11-Aug-00 Brad Barnett wrapped up these bytes together:
>> 
>> On 11-Aug-2000 Stephane Rosa wrote:
>>> 
>>> 
>>> Sorry if you get this one twice. First time didn't go through,
>>> so I repost it.
>>> 
>>> 
>>> Is it possible to change a param from inside a handler ?
>>> i.e. when calling "/server foo.com"
>>> 
>>> sub handle_server {      
>>>    @_[0] = "whatever else";
>>> 
>>>    return $NEXTHANDLER;      # proceed to xchat handling
>>> }
>>> 
>>> and that would issue a /server whatever else ?
>>> 
>> 
>> 
>> No.. unless things have changed.  However, you can return 1, and then issue
>> /server whatever yourself...
> 
> Shame. This could work, but then how do you handle /newserver which
> opens a new tab :-/
> 
> Or is there a way to access the server list ? (i mean the menu X-Chat-Server
> list).
> 
> My goal is to have in my script :
> 
> A hash of networks (ircnet, undernet, etc) each containing a hash of
> possible servers (by network). So you could tell /server DALNet and
> it would pick the first one in the hash, if it can't connect, check
> the second, etc.
> 
> of course, this is supposed to work with /newserver, opening a new tab
> 
> of course as well, with each network goes several params, like usual nick,
> away nick, open ports, etc, etc)
> 
> Any ideas ?
>

Take a look at my script, l8r.net/xdcc.  It has code that reads in the
serverlist, psrses it, and uses it in such a manner.
 
> Cheers
> Clipper
> 
>
-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/lists/
Posted By:     Brad Barnett <bbarnett@L8R.net>