From 6fda8d1059dcf12b2c936ac2c9e66390360e3a02 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Jun 2000 10:14:15 +0000 Subject: [PATCH] /topic's cmd_get_params() had wrong parameter count.. removed unused variable from netsplit.c git-svn-id: http://svn.irssi.org/repos/irssi/trunk@372 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/irc/core/irc-commands.c | 2 +- src/irc/core/netsplit.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index c13c1841..9a81f104 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -390,7 +390,7 @@ static void cmd_topic(const char *data, IRC_SERVER_REC *server, WI_IRC_REC *item if (server == NULL || !server->connected || !irc_server_check(server)) cmd_return_error(CMDERR_NOT_CONNECTED); - if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_OPTCHAN | + if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_OPTCHAN | PARAM_FLAG_OPTIONS | PARAM_FLAG_GETREST, item, "topic", &optlist, &channame, &topic)) return; diff --git a/src/irc/core/netsplit.c b/src/irc/core/netsplit.c index cc774ccc..4ee80f0c 100644 --- a/src/irc/core/netsplit.c +++ b/src/irc/core/netsplit.c @@ -191,7 +191,6 @@ NICK_REC *netsplit_find_channel(IRC_SERVER_REC *server, const char *nick, const int quitmsg_is_split(const char *msg) { char *host1, *host2, *p; - void *free_arg; int ok; g_return_val_if_fail(msg != NULL, FALSE);