summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc-chat.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-07 09:26:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-07 09:26:45 +0000
commit3f1b28ead9a703d09d651e776fdb13e9c5d1ae57 (patch)
tree3973b3ccbe5a3171aa8eeb161e0adba3828627f3 /src/irc/dcc/dcc-chat.c
parent2faf78fe7c984371a57fbc4fce51f310d22b0ace (diff)
downloadirssi-3f1b28ead9a703d09d651e776fdb13e9c5d1ae57.zip
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
Diffstat (limited to 'src/irc/dcc/dcc-chat.c')
-rw-r--r--src/irc/dcc/dcc-chat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c
index f78485f2..0084cee8 100644
--- a/src/irc/dcc/dcc-chat.c
+++ b/src/irc/dcc/dcc-chat.c
@@ -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 */
-DCC_REC *item_get_dcc(void *item)
+DCC_REC *item_get_dcc(WI_ITEM_REC *item)
{
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);
- dcc = item_get_dcc(item);
+ dcc = item_get_dcc((WI_ITEM_REC *) item);
if (dcc == NULL) return;
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 */
-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;
g_return_if_fail(data != NULL);
- dcc = item_get_dcc(item);
+ dcc = item_get_dcc((WI_ITEM_REC *) item);
if (dcc == NULL) return;
dcc->mirc_ctcp = toupper(*data) != 'N' &&