summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-10-14 21:26:46 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-10-17 21:28:31 +0200
commit7b4d48c46d368fc8fca9b8429f4bac10f6d12e1c (patch)
treed21da612ac4b2679669377a5f3f33124037cbae3 /src
parent4ee82d1c70ebe2c7cfc4e33aa319d031fb1c74a7 (diff)
downloadweechat-7b4d48c46d368fc8fca9b8429f4bac10f6d12e1c.zip
irc: fix number of required parameters in generic error command callback
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index 11bd61a89..b107dcb37 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -1275,7 +1275,7 @@ IRC_PROTOCOL_CALLBACK(generic_error)
struct t_irc_channel *ptr_channel;
struct t_gui_buffer *ptr_buffer;
- IRC_PROTOCOL_MIN_PARAMS(1);
+ IRC_PROTOCOL_MIN_PARAMS(2);
arg_error = (irc_server_strcasecmp (server, params[0], server->nick) == 0) ?
1 : 0;