From eea919678ccc3bcea57911fa87e11b9a7298dfae Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 28 Apr 2000 09:02:44 +0000 Subject: [PATCH] /ban and /invite crashed, /mode didn't work. ctcp.c doesn't need irssi-version.h git-svn-id: http://svn.irssi.org/repos/irssi/trunk@194 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/irc/fe-events-numeric.c | 2 +- src/irc/core/bans.c | 2 +- src/irc/core/ctcp.c | 1 - src/irc/core/modes.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/fe-common/irc/fe-events-numeric.c b/src/fe-common/irc/fe-events-numeric.c index 2592af10..44169fe8 100644 --- a/src/fe-common/irc/fe-events-numeric.c +++ b/src/fe-common/irc/fe-events-numeric.c @@ -353,7 +353,7 @@ static void event_sent_invite(const char *data, IRC_SERVER_REC *server) g_return_if_fail(data != NULL); - params = event_get_params(data, 2, NULL, &nick, &channel); + params = event_get_params(data, 3, NULL, &nick, &channel); printformat(server, NULL, MSGLEVEL_CRAP, IRCTXT_INVITING, nick, channel); g_free(params); } diff --git a/src/irc/core/bans.c b/src/irc/core/bans.c index c492d3da..962c3c8d 100644 --- a/src/irc/core/bans.c +++ b/src/irc/core/bans.c @@ -169,7 +169,7 @@ static void command_set_ban(const char *data, IRC_SERVER_REC *server, WI_IRC_REC if (server == NULL || !server->connected || !irc_server_check(server)) cmd_return_error(CMDERR_NOT_CONNECTED); - params = cmd_get_params(data, 2 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_GETREST, + params = cmd_get_params(data, 3 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_GETREST, item, &channel, &nicks); if (!ischannel(*channel)) cmd_param_error(CMDERR_NOT_JOINED); if (*nicks == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); diff --git a/src/irc/core/ctcp.c b/src/irc/core/ctcp.c index 967c22a3..5265c2be 100644 --- a/src/irc/core/ctcp.c +++ b/src/irc/core/ctcp.c @@ -23,7 +23,6 @@ #include "levels.h" #include "special-vars.h" #include "settings.h" -#include "irssi-version.h" #include "irc.h" #include "irc-server.h" diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c index b73d5eb8..9b5c8027 100644 --- a/src/irc/core/modes.c +++ b/src/irc/core/modes.c @@ -331,7 +331,7 @@ void channel_set_mode(IRC_SERVER_REC *server, const char *channel, const char *m g_return_if_fail(server != NULL); g_return_if_fail(channel != NULL); - g_return_if_fail(modestr != NULL); + g_return_if_fail(mode != NULL); tmode = g_string_new(NULL); targs = g_string_new(NULL);