From b3fd00fc2346bf226a3420849aa492459a6e3552 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 9 Sep 2004 22:24:08 +0000 Subject: Removed debug message --- src/irc/irc-dcc.c | 4 ++-- weechat/src/irc/irc-dcc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/irc/irc-dcc.c b/src/irc/irc-dcc.c index a8063cf8a..e5404e5de 100644 --- a/src/irc/irc-dcc.c +++ b/src/irc/irc-dcc.c @@ -35,6 +35,7 @@ #include "../common/weechat.h" #include "irc.h" #include "../common/weeconfig.h" +#include "../common/hotlist.h" #include "../gui/gui.h" @@ -124,7 +125,6 @@ dcc_accept (t_dcc *ptr_dcc) { ptr_dcc->status = DCC_ACTIVE; ptr_home = getenv ("HOME"); - gui_printf (NULL, "home = %s\n", ptr_home); ptr_dcc->local_filename = (char *) malloc (strlen (cfg_dcc_download_path) + strlen (ptr_dcc->nick) + strlen (ptr_dcc->filename) + @@ -143,7 +143,7 @@ dcc_accept (t_dcc *ptr_dcc) } else strcpy (ptr_dcc->local_filename, cfg_dcc_download_path); - if (ptr_dcc->local_filename[strlen (ptr_dcc->local_filename) - 1] != DIR_SEPARATOR) + if (ptr_dcc->local_filename[strlen (ptr_dcc->local_filename) - 1] != DIR_SEPARATOR_CHAR) strcat (ptr_dcc->local_filename, DIR_SEPARATOR); strcat (ptr_dcc->local_filename, ptr_dcc->nick); strcat (ptr_dcc->local_filename, "."); diff --git a/weechat/src/irc/irc-dcc.c b/weechat/src/irc/irc-dcc.c index a8063cf8a..e5404e5de 100644 --- a/weechat/src/irc/irc-dcc.c +++ b/weechat/src/irc/irc-dcc.c @@ -35,6 +35,7 @@ #include "../common/weechat.h" #include "irc.h" #include "../common/weeconfig.h" +#include "../common/hotlist.h" #include "../gui/gui.h" @@ -124,7 +125,6 @@ dcc_accept (t_dcc *ptr_dcc) { ptr_dcc->status = DCC_ACTIVE; ptr_home = getenv ("HOME"); - gui_printf (NULL, "home = %s\n", ptr_home); ptr_dcc->local_filename = (char *) malloc (strlen (cfg_dcc_download_path) + strlen (ptr_dcc->nick) + strlen (ptr_dcc->filename) + @@ -143,7 +143,7 @@ dcc_accept (t_dcc *ptr_dcc) } else strcpy (ptr_dcc->local_filename, cfg_dcc_download_path); - if (ptr_dcc->local_filename[strlen (ptr_dcc->local_filename) - 1] != DIR_SEPARATOR) + if (ptr_dcc->local_filename[strlen (ptr_dcc->local_filename) - 1] != DIR_SEPARATOR_CHAR) strcat (ptr_dcc->local_filename, DIR_SEPARATOR); strcat (ptr_dcc->local_filename, ptr_dcc->nick); strcat (ptr_dcc->local_filename, "."); -- cgit v1.2.3