summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--src/plugins/plugins-interface.c4
-rw-r--r--weechat/ChangeLog3
-rw-r--r--weechat/src/plugins/plugins-interface.c4
4 files changed, 6 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 3e40b77fe..3d60490c6 100644
--- a/ChangeLog
+++ b/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/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;
}
}