summaryrefslogtreecommitdiff
path: root/src/irc/dcc/dcc.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-05 21:12:52 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-05 21:12:52 +0000
commit9f2f1dc70a7ed6495cf511249f3b9095fb40c38a (patch)
treeb54494da367fdeb1c4f3e90b559da6615b58e370 /src/irc/dcc/dcc.c
parent346808789cfd3556b8caf263bdd81982d6081296 (diff)
downloadirssi-9f2f1dc70a7ed6495cf511249f3b9095fb40c38a.zip
Server events: switched order of data and server parameters. it's now
SERVER_REC *server, const char *data, .. hope this doesn't cause too many problems :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@967 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/dcc/dcc.c')
-rw-r--r--src/irc/dcc/dcc.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c
index 5f8891e4..bc63a6d2 100644
--- a/src/irc/dcc/dcc.c
+++ b/src/irc/dcc/dcc.c
@@ -197,7 +197,8 @@ int dcc_str2type(const char *type)
return 0;
}
-void dcc_ctcp_message(const char *target, IRC_SERVER_REC *server, DCC_REC *chat, int notice, const char *msg)
+void dcc_ctcp_message(IRC_SERVER_REC *server, const char *target,
+ DCC_REC *chat, int notice, const char *msg)
{
char *str;
@@ -279,7 +280,9 @@ static void dcc_get_address(const char *str, IPADDR *ip)
}
/* Handle incoming DCC CTCP messages */
-static void dcc_ctcp_msg(char *data, IRC_SERVER_REC *server, char *sender, char *sendaddr, char *target, DCC_REC *chat)
+static void dcc_ctcp_msg(IRC_SERVER_REC *server, char *data,
+ char *sender, char *sendaddr,
+ char *target, DCC_REC *chat)
{
char *type, *arg, *addrstr, *portstr, *sizestr, *str;
void *free_arg;
@@ -379,7 +382,8 @@ static void dcc_ctcp_msg(char *data, IRC_SERVER_REC *server, char *sender, char
}
/* Handle incoming DCC CTCP replies */
-static void dcc_ctcp_reply(char *data, IRC_SERVER_REC *server, char *sender, char *sendaddr)
+static void dcc_ctcp_reply(IRC_SERVER_REC *server, char *data,
+ char *sender, char *sendaddr)
{
char *cmd, *subcmd, *args;
void *free_arg;
@@ -433,7 +437,7 @@ static void dcc_reject(DCC_REC *dcc, IRC_SERVER_REC *server)
}
/* SYNTAX: DCC CLOSE <type> <nick> [<file>] */
-static void cmd_dcc_close(char *data, IRC_SERVER_REC *server)
+static void cmd_dcc_close(IRC_SERVER_REC *server, char *data)
{
DCC_REC *dcc;
GSList *tmp, *next;
@@ -502,7 +506,7 @@ static int dcc_timeout_func(void)
return 1;
}
-static void event_no_such_nick(char *data, IRC_SERVER_REC *server)
+static void event_no_such_nick(IRC_SERVER_REC *server, char *data)
{
char *params, *nick;
GSList *tmp, *next;