File name completion for /DCC SEND

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@361 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-17 15:58:40 +00:00 committed by cras
commit 8fa6ca5e61
6 changed files with 153 additions and 10 deletions

View file

@ -115,6 +115,21 @@ void command_runsub(const char *cmd, const char *data, void *p1, void *p2)
g_free(subcmd);
}
COMMAND_REC *command_find(const char *command)
{
GSList *tmp;
int len;
for (tmp = commands; tmp != NULL; tmp = tmp->next) {
COMMAND_REC *rec = tmp->data;
if (g_strcasecmp(rec->cmd, command) == 0)
return rec;
}
return NULL;
}
char *cmd_get_param(char **data)
{
char *pos;