From 4e5f1698ba98ca879ddafc2fdef72c295a50e6b3 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 3 Oct 2004 12:43:32 +0000 Subject: [PATCH] Fixed bug when adding alias with same name as other --- ChangeLog | 1 + src/common/weeconfig.c | 2 +- weechat/ChangeLog | 1 + weechat/src/common/weeconfig.c | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 859712b36..7110f5745 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ ChangeLog - 2004-10-03 Version 0.0.8 (under dev!): + * fixed bug when adding alias with same name as other * /buffer command developed (buffers list, move and notify) * logging buffers to disk (server/channel/private according to user prefs) * Away now announced in channels, and config option "look_display_away" added diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c index e08833175..ddf275d89 100644 --- a/src/common/weeconfig.c +++ b/src/common/weeconfig.c @@ -981,7 +981,7 @@ config_read () if (section == CONFIG_SECTION_ALIAS) { if (alias_new (line, pos)) - index_command_new (pos); + index_command_new (line); } else { diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 859712b36..7110f5745 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -5,6 +5,7 @@ ChangeLog - 2004-10-03 Version 0.0.8 (under dev!): + * fixed bug when adding alias with same name as other * /buffer command developed (buffers list, move and notify) * logging buffers to disk (server/channel/private according to user prefs) * Away now announced in channels, and config option "look_display_away" added diff --git a/weechat/src/common/weeconfig.c b/weechat/src/common/weeconfig.c index e08833175..ddf275d89 100644 --- a/weechat/src/common/weeconfig.c +++ b/weechat/src/common/weeconfig.c @@ -981,7 +981,7 @@ config_read () if (section == CONFIG_SECTION_ALIAS) { if (alias_new (line, pos)) - index_command_new (pos); + index_command_new (line); } else {