mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
Lots of DCC related fixes.
Added command_bind_first() and command_bind_last() functions. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@285 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
841736a7d3
commit
35fab0c9ef
13 changed files with 1191 additions and 1165 deletions
|
|
@ -39,7 +39,7 @@ char *current_command;
|
|||
static GSList *cmdget_funcs;
|
||||
static int signal_default_command;
|
||||
|
||||
void command_bind(const char *cmd, const char *category, SIGNAL_FUNC func)
|
||||
void command_bind_to(int pos, const char *cmd, const char *category, SIGNAL_FUNC func)
|
||||
{
|
||||
COMMAND_REC *rec;
|
||||
char *str;
|
||||
|
|
@ -53,7 +53,7 @@ void command_bind(const char *cmd, const char *category, SIGNAL_FUNC func)
|
|||
|
||||
if (func != NULL) {
|
||||
str = g_strconcat("command ", cmd, NULL);
|
||||
signal_add(str, func);
|
||||
signal_add_to(MODULE_NAME, pos, str, func);
|
||||
g_free(str);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue