[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-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 ?

Cheers
Clipper


> 
> 
> 
> 
> ---
> 
>                                      Dynamic Hosting
>                                    HTTP://www.L8R.net/             
>                       "We Provide Static Hostnames for Dynamic IP's"
> -
> XChat-perl:    mailing list for XChat perl scripters
> Archive:       http://mail.nl.linux.org/
> Posted By:     Brad Barnett <bbarnett@L8R.net>

---
SILICON GRAPHICS                 EUROPEAN MANUFACTURING CENTER
##############################################################
Stephane Rosa                     Tel :     +41 (0)32 843-3638
Business Analyst                  Fax :     +41 (0)32 843-3909
APS/FP  Project                   GSM :     +41 (0)79 448-5335
--------------------------------------------------------------
ircnoc.neu.sgi.com  SGI Intranet  IRC :   EuroOper on #irchelp
irc.stealth.net     Euro-IRCNet   IRC :   Clipper on #radionet
-
XChat-discuss: mailing list for XChat users
Archive:       http://mail.nl.linux.org/lists/
Posted By:     Stephane Rosa <stephane@sgi.com>