1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 03:03:12 +02:00

Add new hooks (info and infolist), IRC plugin now return infos and infolists

This commit is contained in:
Sebastien Helleu
2008-08-30 00:25:56 +02:00
parent eb57354984
commit 0839b359f9
45 changed files with 1990 additions and 402 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ xfer_file_find_filename (struct t_xfer *xfer)
if (!dir1)
return;
weechat_home = weechat_info_get ("weechat_dir");
weechat_home = weechat_info_get ("weechat_dir", "");
if (!weechat_home)
{
free (dir1);
@@ -107,7 +107,7 @@ xfer_file_find_filename (struct t_xfer *xfer)
return;
strcpy (xfer->local_filename, dir2);
dir_separator = weechat_info_get("dir_separator");
dir_separator = weechat_info_get("dir_separator", "");
if (dir_separator
&& (xfer->local_filename[strlen (xfer->local_filename) - 1] != dir_separator[0]))
strcat (xfer->local_filename, dir_separator);
+2 -2
View File
@@ -104,7 +104,7 @@ xfer_create_directories ()
char *weechat_dir, *dir1, *dir2;
/* create download directory */
weechat_dir = weechat_info_get ("weechat_dir");
weechat_dir = weechat_info_get ("weechat_dir", "");
if (weechat_dir)
{
dir1 = weechat_string_replace (weechat_config_string (xfer_config_file_download_path),
@@ -754,7 +754,7 @@ xfer_add_cb (void *data, const char *signal, const char *type_data, void *signal
return WEECHAT_RC_ERROR;
}
weechat_dir = weechat_info_get ("weechat_dir");
weechat_dir = weechat_info_get ("weechat_dir", "");
dir2 = weechat_string_replace (dir1, "%h", weechat_dir);
if (!dir2)
{