summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-ctcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-common/irc/fe-ctcp.c')
-rw-r--r--src/fe-common/irc/fe-ctcp.c18
1 files changed, 10 insertions, 8 deletions
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;
}