From 9f2f1dc70a7ed6495cf511249f3b9095fb40c38a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 5 Dec 2000 21:12:52 +0000 Subject: 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 --- src/fe-common/irc/fe-ctcp.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/fe-common/irc/fe-ctcp.c') diff --git a/src/fe-common/irc/fe-ctcp.c b/src/fe-common/irc/fe-ctcp.c index 2ed0feb4..d0fc66b3 100644 --- a/src/fe-common/irc/fe-ctcp.c +++ b/src/fe-common/irc/fe-ctcp.c @@ -34,7 +34,9 @@ #include "window-items.h" #include "printtext.h" -static void ctcp_print(const char *pre, const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target) +static void ctcp_print(const char *pre, const char *data, + IRC_SERVER_REC *server, const char *nick, + const char *addr, const char *target) { char *str; @@ -46,27 +48,27 @@ static void ctcp_print(const char *pre, const char *data, IRC_SERVER_REC *server g_free(str); } -static void ctcp_default_msg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target) +static void ctcp_default_msg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { ctcp_print("unknown CTCP", data, server, nick, addr, target); } -static void ctcp_ping_msg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target) +static void ctcp_ping_msg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { ctcp_print("CTCP PING", data, server, nick, addr, target); } -static void ctcp_version_msg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target) +static void ctcp_version_msg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { ctcp_print("CTCP VERSION", data, server, nick, addr, target); } -static void ctcp_time_msg(const char *data, IRC_SERVER_REC *server, const char *nick, const char *addr, const char *target) +static void ctcp_time_msg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { ctcp_print("CTCP TIME", data, server, nick, addr, target); } -static void ctcp_default_reply(const char *data, IRC_SERVER_REC *server, +static void ctcp_default_reply(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { @@ -89,7 +91,7 @@ static void ctcp_default_reply(const char *data, IRC_SERVER_REC *server, g_free(ctcp); } -static void ctcp_ping_reply(const char *data, IRC_SERVER_REC *server, +static void ctcp_ping_reply(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr, const char *target) { @@ -100,7 +102,7 @@ static void ctcp_ping_reply(const char *data, IRC_SERVER_REC *server, if (sscanf(data, "%ld %ld", &tv2.tv_sec, &tv2.tv_usec) != 2) { char *tmp = g_strconcat("PING ", data, NULL); - ctcp_default_reply(tmp, server, nick, addr, target); + ctcp_default_reply(server, tmp, nick, addr, target); g_free(tmp); return; } -- cgit v1.2.3