From 8d33ef0168af601fc6b865069f2ec257c620c33e Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 1 Nov 2003 23:21:25 +0000 Subject: [PATCH] Fixed crash with /set command --- src/common/command.c | 4 ++-- weechat/src/common/command.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/command.c b/src/common/command.c index 633aa1f8a..1b0f13464 100644 --- a/src/common/command.c +++ b/src/common/command.c @@ -1302,7 +1302,7 @@ weechat_cmd_set (int argc, char **argv) for (i = 0; i < CONFIG_NUMBER_SECTIONS; i++) { section_displayed = 0; - if (i != CONFIG_SECTION_SERVER) + if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER)) { for (j = 0; weechat_options[i][j].option_name; j++) { @@ -1358,7 +1358,7 @@ weechat_cmd_set (int argc, char **argv) } } } - gui_printf (NULL, "(TODO) \"/set\" command not developed!\n"); + gui_printf (NULL, "(TODO) \"/set\" command not fully developed!\n"); return 0; } diff --git a/weechat/src/common/command.c b/weechat/src/common/command.c index 633aa1f8a..1b0f13464 100644 --- a/weechat/src/common/command.c +++ b/weechat/src/common/command.c @@ -1302,7 +1302,7 @@ weechat_cmd_set (int argc, char **argv) for (i = 0; i < CONFIG_NUMBER_SECTIONS; i++) { section_displayed = 0; - if (i != CONFIG_SECTION_SERVER) + if ((i != CONFIG_SECTION_ALIAS) && (i != CONFIG_SECTION_SERVER)) { for (j = 0; weechat_options[i][j].option_name; j++) { @@ -1358,7 +1358,7 @@ weechat_cmd_set (int argc, char **argv) } } } - gui_printf (NULL, "(TODO) \"/set\" command not developed!\n"); + gui_printf (NULL, "(TODO) \"/set\" command not fully developed!\n"); return 0; }