diff options
author | Timo Sirainen <cras@irssi.org> | 2000-08-26 15:39:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-08-26 15:39:44 +0000 |
commit | e395e87dedd9aa85f05e5c74330a76f1ef700371 (patch) | |
tree | 1184487b13038499f1771e4c553222f85b8524d2 /src/irc/dcc/dcc-chat.c | |
parent | 3d124da13b8da5c0b535abfe6265fc471d9d2ebd (diff) | |
download | irssi-e395e87dedd9aa85f05e5c74330a76f1ef700371.zip |
Lots of moving stuff around - hopefully I didn't break too much :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@632 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc-chat.c')
-rw-r--r-- | src/irc/dcc/dcc-chat.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index f1d9daba..59b4a776 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -29,8 +29,8 @@ #include "masks.h" #include "irc.h" -#include "server-setup.h" -#include "query.h" +#include "servers-setup.h" +#include "irc-queries.h" #include "dcc.h" @@ -50,10 +50,11 @@ DCC_REC *item_get_dcc(void *item) { QUERY_REC *query; - query = irc_item_query(item); - if (query == NULL || *query->nick != '=') return NULL; + query = IRC_QUERY(item); + if (query == NULL || *query->name != '=') + return NULL; - return dcc_find_item(DCC_TYPE_CHAT, query->nick+1, NULL); + return dcc_find_item(DCC_TYPE_CHAT, query->name+1, NULL); } /* Send text to DCC chat */ @@ -81,7 +82,7 @@ static void cmd_msg(const char *data) signal_stop(); } -static void cmd_me(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) +static void cmd_me(const char *data, IRC_SERVER_REC *server, QUERY_REC *item) { DCC_REC *dcc; char *str; @@ -309,7 +310,7 @@ static void cmd_dcc_chat(const char *data, IRC_SERVER_REC *server) } /* SYNTAX: MIRCDCC ON|OFF */ -static void cmd_mircdcc(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item) +static void cmd_mircdcc(const char *data, IRC_SERVER_REC *server, QUERY_REC *item) { DCC_REC *dcc; |