org.guifications.plugins: c96de3405e21e8568e2479f3882d09eb341be94f
nosnilmot at guifications.org
nosnilmot at guifications.org
Tue Nov 27 19:45:05 CST 2007
-----------------------------------------------------------------
Revision: c96de3405e21e8568e2479f3882d09eb341be94f
Ancestor: 35e41622202ff7349b3467a51c6a51bc173e6f23
Author: nosnilmot at guifications.org
Date: 2007-11-28T01:41:46
Branch: org.guifications.plugins
Modified files:
oldlogger/oldlogger.c
ChangeLog:
crashy-crashy fixy-fixy
-----------------------------------------------------------------
This revision's diffstat output:
oldlogger.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
-------------- next part --------------
============================================================
--- oldlogger/oldlogger.c 18594607f354a8c93d2fcaae14dde9f68870bca8
+++ oldlogger/oldlogger.c b4b17191ad9062833c35fea4fc494d2a02636186
@@ -100,6 +100,7 @@ static void old_logger_create(PurpleLog
"Could not create log file %s\n", filename);
g_free(filename);
g_free(data);
+ log->logger_data = NULL;
return;
}
data->filename = filename;
@@ -228,6 +229,11 @@ oldtxt_logger_write(PurpleLog *log, Purp
char *logfile;
struct stat st;
+ for (filename = guy; *filename != '\0'; filename++) {
+ if (*filename == '/')
+ *filename = '.';
+ }
+
if (log->type == PURPLE_LOG_CHAT) {
chat = g_strdup_printf("%s.chat", guy);
g_free(guy);
@@ -255,6 +261,7 @@ oldtxt_logger_write(PurpleLog *log, Purp
purple_debug(PURPLE_DEBUG_ERROR, "log", "Could not create log file %s\n", filename);
g_free(filename);
g_free(data);
+ log->logger_data = NULL;
return_written;
}
data->filename = filename;
@@ -337,6 +344,11 @@ oldhtml_logger_write(PurpleLog *log, Pur
char *logfile;
struct stat st;
+ for (filename = guy; *filename != '\0'; filename++) {
+ if (*filename == '/')
+ *filename = '.';
+ }
+
if (log->type == PURPLE_LOG_CHAT) {
chat = g_strdup_printf("%s.chat", guy);
g_free(guy);
@@ -365,6 +377,7 @@ oldhtml_logger_write(PurpleLog *log, Pur
"Could not create log file %s\n", filename);
g_free(filename);
g_free(data);
+ log->logger_data = NULL;
return_written;
}
data->filename = filename;
More information about the Plugins-commits
mailing list