mirror of
https://github.com/irssi/irssi.git
synced 2025-04-27 05:21:16 -05:00
Irssi::command_runsub() - patch by fuchs
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1519 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
5fe2ba9f61
commit
5f6d953602
@ -307,6 +307,14 @@ command_bind(cmd, func[, category])
|
|||||||
Bind command `cmd' to call function `func'. `category' is the
|
Bind command `cmd' to call function `func'. `category' is the
|
||||||
category where the command is displayed in /HELP.
|
category where the command is displayed in /HELP.
|
||||||
|
|
||||||
|
command_runsub(cms, data, server, item)
|
||||||
|
Run subcommands for `cmd'. First word in `data' is parsed as
|
||||||
|
subcommand. `server' is Irssi::Server rec for current
|
||||||
|
Irssi::Windowitem `item'.
|
||||||
|
|
||||||
|
Call command_runsub in handler function for `cmd' and bind
|
||||||
|
with command_bind("`cmd' `subcmd'", subcmdfunc[, category]);
|
||||||
|
|
||||||
command_unbind(cmd, func)
|
command_unbind(cmd, func)
|
||||||
Unbind command `cmd' from function 'func.
|
Unbind command `cmd' from function 'func.
|
||||||
|
|
||||||
|
@ -325,6 +325,15 @@ command_bind(cmd, func, category = "Perl scripts' commands")
|
|||||||
CODE:
|
CODE:
|
||||||
perl_command_bind(cmd, category, func);
|
perl_command_bind(cmd, category, func);
|
||||||
|
|
||||||
|
void
|
||||||
|
command_runsub(cmd, data, server, item)
|
||||||
|
char *cmd
|
||||||
|
char *data
|
||||||
|
Irssi::Server server
|
||||||
|
Irssi::Windowitem item
|
||||||
|
CODE:
|
||||||
|
perl_command_runsub(cmd, data, server, item);
|
||||||
|
|
||||||
void
|
void
|
||||||
command_unbind(cmd, func)
|
command_unbind(cmd, func)
|
||||||
char *cmd
|
char *cmd
|
||||||
|
@ -273,6 +273,12 @@ void perl_command_bind(const char *cmd, const char *category, const char *func)
|
|||||||
g_free(signal);
|
g_free(signal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void perl_command_runsub(const char *cmd, const char *data,
|
||||||
|
SERVER_REC *server, WI_ITEM_REC *item)
|
||||||
|
{
|
||||||
|
command_runsub(cmd, data, server, item);
|
||||||
|
}
|
||||||
|
|
||||||
void perl_command_unbind(const char *cmd, const char *func)
|
void perl_command_unbind(const char *cmd, const char *func)
|
||||||
{
|
{
|
||||||
char *signal;
|
char *signal;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user