[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Perl scripting additions.
Mike Guidero scripsit:
>I'd like to see more work on the perl scripting interface. In order to
>hopefully fuel interest, I've done some additions myself.
>
>(Diffs coming your way soon, zed)
>
>My current additions include:
>
>IRC::get_info(4)
> Returns the full pathname to the .xchat directory.
> Like /home/user/.xchat
> Useful for saving config data for your script.
>IRC::user_list_short(channel, server)
> Returns a list of nick/user@host pairs suitable for assigning
> to a hash. It may be redundant, but being able to dump it into
> a hash is something I know I appreciate.
>IRC::perl_script_list()
> Returns a list of script names and versions for currently
> registered perl scripts.
> Useful for finding out if your script has loaded already,
> or if a script it relies on has been loaded already.
>
I'm working on perl.c :))) I added a function
IRC::get_prefs(varname)
which allows one to get the value of varname entry in the config
file. I needed it to write a silly perl function which tries to get
back your preferred nickname, which you can get by
IRC::get_prefs("nickname1"), if you can get it when you connect to
irc.
I already sent the .diff file for both perl.c and cfgfiles.c (based on
1.4.1pre2 to zed.
What _I_ whould be interested in, is a way to access windows and menus
from perl scripts. I got the Gtk-Perl library from CPAN, but I do not
know GTK enough :(
--
Leo Cacciari
Dept. Informatique UFR Sciences et Techniques
Université de Pau
-
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/lists/
Posted By: Leo Cacciari <leo.cacciari@univ-pau.fr>