diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-20 10:14:15 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-20 10:14:15 +0000 |
commit | 6fda8d1059dcf12b2c936ac2c9e66390360e3a02 (patch) | |
tree | a78e5ba7d5be70b9f325452455613b5ca944237f /src/irc | |
parent | 2cb75b5eb2c3d55a2f05256ba873e697e31f5950 (diff) | |
download | irssi-6fda8d1059dcf12b2c936ac2c9e66390360e3a02.zip |
/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
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-commands.c | 2 | ||||
-rw-r--r-- | src/irc/core/netsplit.c | 1 |
2 files changed, 1 insertions, 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); |