diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-26 10:18:50 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2006-01-26 10:18:50 +0000 |
commit | a7479272f0ae0bd1c697ed144aeda24bd519f277 (patch) | |
tree | bfeb67b279f355d8e2554a3be439c284f33a34ae | |
parent | 2e1c6023d796c4e2a27707970e3299c511605a91 (diff) | |
download | weechat-a7479272f0ae0bd1c697ed144aeda24bd519f277.zip |
Fixed bug with "get_dcc_info" plugin interface function
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/plugins/plugins-interface.c | 4 | ||||
-rw-r--r-- | weechat/ChangeLog | 3 | ||||
-rw-r--r-- | weechat/src/plugins/plugins-interface.c | 4 |
4 files changed, 6 insertions, 8 deletions
@@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-01-25 +ChangeLog - 2006-01-26 Version 0.1.8 (under dev!): + * fixed bug with "get_dcc_info" plugin interface function * added new scroll keys for a few lines up/down (default: meta-pgup/pgdn) (patch from Pistos) * added new option "irc_away_check_max_nicks" to disable away check on diff --git a/src/plugins/plugins-interface.c b/src/plugins/plugins-interface.c index 7c6216b8f..5d4312c00 100644 --- a/src/plugins/plugins-interface.c +++ b/src/plugins/plugins-interface.c @@ -427,12 +427,10 @@ weechat_plugin_get_dcc_info (t_weechat_plugin *plugin) new_dcc_info->prev_dcc = last_dcc_info; new_dcc_info->next_dcc = NULL; if (!dcc_info) - { dcc_info = new_dcc_info; - last_dcc_info = new_dcc_info; - } else last_dcc_info->next_dcc = new_dcc_info; + last_dcc_info = new_dcc_info; } } diff --git a/weechat/ChangeLog b/weechat/ChangeLog index 3e40b77fe..3d60490c6 100644 --- a/weechat/ChangeLog +++ b/weechat/ChangeLog @@ -1,10 +1,11 @@ WeeChat - Wee Enhanced Environment for Chat =========================================== -ChangeLog - 2006-01-25 +ChangeLog - 2006-01-26 Version 0.1.8 (under dev!): + * fixed bug with "get_dcc_info" plugin interface function * added new scroll keys for a few lines up/down (default: meta-pgup/pgdn) (patch from Pistos) * added new option "irc_away_check_max_nicks" to disable away check on diff --git a/weechat/src/plugins/plugins-interface.c b/weechat/src/plugins/plugins-interface.c index 7c6216b8f..5d4312c00 100644 --- a/weechat/src/plugins/plugins-interface.c +++ b/weechat/src/plugins/plugins-interface.c @@ -427,12 +427,10 @@ weechat_plugin_get_dcc_info (t_weechat_plugin *plugin) new_dcc_info->prev_dcc = last_dcc_info; new_dcc_info->next_dcc = NULL; if (!dcc_info) - { dcc_info = new_dcc_info; - last_dcc_info = new_dcc_info; - } else last_dcc_info->next_dcc = new_dcc_info; + last_dcc_info = new_dcc_info; } } |