mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
item_get_dcc(void *item) -> WI_ITEM_REC *item
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1088 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2faf78fe7c
commit
3f1b28ead9
@ -46,7 +46,7 @@ void dcc_chat_send(DCC_REC *dcc, const char *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* If `item' is a query of a =nick, return DCC chat record of nick */
|
/* If `item' is a query of a =nick, return DCC chat record of nick */
|
||||||
DCC_REC *item_get_dcc(void *item)
|
DCC_REC *item_get_dcc(WI_ITEM_REC *item)
|
||||||
{
|
{
|
||||||
QUERY_REC *query;
|
QUERY_REC *query;
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ static void cmd_me(const char *data, IRC_SERVER_REC *server, QUERY_REC *item)
|
|||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
dcc = item_get_dcc(item);
|
dcc = item_get_dcc((WI_ITEM_REC *) item);
|
||||||
if (dcc == NULL) return;
|
if (dcc == NULL) return;
|
||||||
|
|
||||||
str = g_strdup_printf("ACTION %s", data);
|
str = g_strdup_printf("ACTION %s", data);
|
||||||
@ -314,13 +314,14 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SYNTAX: MIRCDCC ON|OFF */
|
/* SYNTAX: MIRCDCC ON|OFF */
|
||||||
static void cmd_mircdcc(const char *data, IRC_SERVER_REC *server, QUERY_REC *item)
|
static void cmd_mircdcc(const char *data, IRC_SERVER_REC *server,
|
||||||
|
QUERY_REC *item)
|
||||||
{
|
{
|
||||||
DCC_REC *dcc;
|
DCC_REC *dcc;
|
||||||
|
|
||||||
g_return_if_fail(data != NULL);
|
g_return_if_fail(data != NULL);
|
||||||
|
|
||||||
dcc = item_get_dcc(item);
|
dcc = item_get_dcc((WI_ITEM_REC *) item);
|
||||||
if (dcc == NULL) return;
|
if (dcc == NULL) return;
|
||||||
|
|
||||||
dcc->mirc_ctcp = toupper(*data) != 'N' &&
|
dcc->mirc_ctcp = toupper(*data) != 'N' &&
|
||||||
|
@ -508,7 +508,8 @@ static void dcc_send_init(DCC_REC *dcc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SYNTAX: DCC SEND <nick> <file> */
|
/* SYNTAX: DCC SEND <nick> <file> */
|
||||||
static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server, void *item)
|
static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server,
|
||||||
|
WI_ITEM_REC *item)
|
||||||
{
|
{
|
||||||
char *target, *fname, *str, *ptr;
|
char *target, *fname, *str, *ptr;
|
||||||
void *free_arg;
|
void *free_arg;
|
||||||
|
@ -92,7 +92,7 @@ void dcc_ctcp_message(IRC_SERVER_REC *server, const char *target,
|
|||||||
/* Send `data' to dcc chat. */
|
/* Send `data' to dcc chat. */
|
||||||
void dcc_chat_send(DCC_REC *dcc, const char *data);
|
void dcc_chat_send(DCC_REC *dcc, const char *data);
|
||||||
/* If `item' is a query of a =nick, return DCC chat record of nick */
|
/* If `item' is a query of a =nick, return DCC chat record of nick */
|
||||||
DCC_REC *item_get_dcc(void *item);
|
DCC_REC *item_get_dcc(WI_ITEM_REC *item);
|
||||||
|
|
||||||
/* reject DCC request */
|
/* reject DCC request */
|
||||||
void dcc_reject(DCC_REC *dcc, IRC_SERVER_REC *server);
|
void dcc_reject(DCC_REC *dcc, IRC_SERVER_REC *server);
|
||||||
|
Loading…
Reference in New Issue
Block a user