[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Perl scripting additions.
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'd like to know who else is working on perl.c, and what features other people
would like to see. I'm not the world's best C coder, but I can do some things
like the above.
For starters, other things I'd like to see:
1. Perl script runtime errors (like trying to run non-existant subs) should not
take out X-Chat along with them when they die. Clues on why this happens would
be nice...
2. Someone mentioned that it'd be nice to access X-Chat config variables from
scripts. I agree. This is probably beyond my meager skills, though.
Well, that's about it... your thoughts?
--
Mike Guidero - http://mugwump.penguinpowered.com/~lshadow
*** Acting is the art of keeping the audience from coughing. ***
PGP Public Key: http://mugwump.penguinpowered.com/~lshadow/pubkey.txt
Fingerprint : DD87 C663 1767 B11F 1EDE D2AA 0DD1 89C6 56D7 109A
-
XChat-discuss: mailing list for XChat users
Archive: http://mail.nl.linux.org/lists/
Posted By: Mike Guidero <kymermosst@penguinpowered.com>