diff options
author | Timo Sirainen <cras@irssi.org> | 2000-06-20 09:21:54 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-06-20 09:21:54 +0000 |
commit | 2cb75b5eb2c3d55a2f05256ba873e697e31f5950 (patch) | |
tree | 6c238fb978421facbee010958f6039d34d2a19cb /src/irc | |
parent | 1ba308c26c7a728558f3a47545199bd832ffcbdf (diff) | |
download | irssi-2cb75b5eb2c3d55a2f05256ba873e697e31f5950.zip |
cmd_get_params() calls had wrong parameter counts.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@371 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/dcc/dcc-chat.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/core/irc-commands.c b/src/irc/core/irc-commands.c index edc0dd7e..c13c1841 100644 --- a/src/irc/core/irc-commands.c +++ b/src/irc/core/irc-commands.c @@ -458,7 +458,7 @@ static void cmd_who(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_GETREST, &channel, &rest)) + if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &channel, &rest)) return; if (strcmp(channel, "*") == 0 || *channel == '\0') { diff --git a/src/irc/dcc/dcc-chat.c b/src/irc/dcc/dcc-chat.c index afdb9d5b..cb75c97f 100644 --- a/src/irc/dcc/dcc-chat.c +++ b/src/irc/dcc/dcc-chat.c @@ -109,7 +109,7 @@ static void cmd_action(const char *data, IRC_SERVER_REC *server) return; } - if (!cmd_get_params(data, &free_arg, 3 | PARAM_FLAG_GETREST, &target, &text)) + if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &target, &text)) return; if (*target == '\0' || *text == '\0') cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS); |