[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Perl scripting feature request
Leo Cacciari wrote:
> Decklin Foster scripsit:
> >I would like to be able to do something like
> >"IRC::command_with_channel". We already have IRC::command_with_server
> >and IRC::print_with_channel, so it seems like an obvious extension.
> >There may be a way to do it in Perl that I can't see, but seems like
> >it needs to added to perl.c. Unfortunately I have no knowledge of this
> >XS stuff. Can anyone help me out?
> I do not understant... IRC::command() is to be used to execute irc
> command. Now, there is a lot of irc command containing a channel
> Then may be what do you would like is something like
> IRC::command_with_channel(<command>,<channel>) to be equivalent of
> typing <command> in the window of channel <channel>...?
I think that's what he's looking for, and I concur.
Something like IRC::print_with_channel(text, channelname[, servername]), but
being:
IRC::command_with_channel(text, channelname[, servername])
Where servername is optional, returns 1 on success, 0 on fail.
Another one along those lines would be:
IRC::send_raw_with_server(data, servername)
Of course, one could do IRC::command_with_server("/quote " . $data); which is
what one of my scripts currently does.
BTW, Leo, you and I so far are the only ones who seem to be working on perl
scripting features. zed didn't write the original perl interface, and (correct
me if I'm wrong here, zed) I understand the following from conversations with
zed:
1. The original author of the perl interface is no longer working on it.
2. zed doesn't plan on extending it at all himself.
So perhaps you and I should get together and discuss things, to make sure we
don't step on each other's patches and stuff.
One thing we should try not to do is break compatibility with older scripts,
but we have to keep in mind for expansion of the perl interface:
1. +h mode on some nets... being able to get that information on a person easy
enough, when X-Chat supports this mode in it's user information, we'll need an
extended IRC::user_info() and IRC::user_list()... but probably under different
names, or a second package, like IRC_X::...
Am I missing anything here?
I am also working on writing a concise text on X-Chat's perl scripting
features, that is up-to-date, and contains examples.
What else?
--
Mike Guidero - http://mugwump.penguinpowered.com/~lshadow
*** All for one; one for all, except me above all. ***
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>