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/irc/bot/bot-irc-commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/irc/bot/bot-irc-commands.c') diff --git a/src/irc/bot/bot-irc-commands.c b/src/irc/bot/bot-irc-commands.c index 5713ccca..b7088b7b 100644 --- a/src/irc/bot/bot-irc-commands.c +++ b/src/irc/bot/bot-irc-commands.c @@ -31,7 +31,7 @@ #include "bot-users.h" #include "botnet-users.h" -static void event_privmsg(const char *data, IRC_SERVER_REC *server, +static void event_privmsg(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address) { char *params, *target, *msg, *args, *str; @@ -50,7 +50,7 @@ static void event_privmsg(const char *data, IRC_SERVER_REC *server, if (args != NULL) *args++ = '\0'; else args = ""; g_strdown(str); - if (signal_emit(str, 4, args, server, nick, address)) { + if (signal_emit(str, 4, server, args, nick, address)) { /* msg was a command - the msg event. */ signal_stop(); } @@ -58,7 +58,7 @@ static void event_privmsg(const char *data, IRC_SERVER_REC *server, g_free(params); } -static void botcmd_op(const char *data, IRC_SERVER_REC *server, +static void botcmd_op(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address) { CHANNEL_REC *channel; @@ -90,7 +90,7 @@ static void botcmd_op(const char *data, IRC_SERVER_REC *server, } } -static void botcmd_ident(const char *data, IRC_SERVER_REC *server, +static void botcmd_ident(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address) { USER_REC *user; @@ -118,7 +118,7 @@ static void botcmd_ident(const char *data, IRC_SERVER_REC *server, g_free(mask); } -static void botcmd_pass(const char *data, IRC_SERVER_REC *server, +static void botcmd_pass(IRC_SERVER_REC *server, const char *data, const char *nick, const char *address) { USER_REC *user; -- cgit v1.2.3