1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

core, plugins: use variable "argv" in calls to macro COMMAND_MIN_ARGS

This commit is contained in:
Sébastien Helleu
2024-06-09 10:53:05 +02:00
parent ea3486dae3
commit e06e4d1457
6 changed files with 88 additions and 88 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ alias_command_cb (const void *pointer, void *data,
if (weechat_strcmp (argv[1], "del") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(3, "del");
WEECHAT_COMMAND_MIN_ARGS(3, argv[1]);
for (i = 2; i < argc; i++)
{
ptr_alias_name = (weechat_string_is_command_char (argv[i])) ?
@@ -283,7 +283,7 @@ alias_command_cb (const void *pointer, void *data,
if (weechat_strcmp (argv[1], "rename") == 0)
{
WEECHAT_COMMAND_MIN_ARGS(4, "rename");
WEECHAT_COMMAND_MIN_ARGS(4, argv[1]);
ptr_alias_name = (weechat_string_is_command_char (argv[2])) ?
(char *)weechat_utf8_next_char (argv[2]) : argv[2];