# HG changeset patch # User Sean Egan # Date 1109614702 0 # Node ID 6480697e907b8f0860c311e044c000ab5100cad0 # Parent de96582ba40a1a6c9d5528d7714eea4ed173ba47 [gaim-migrate @ 12157] Thanks to Richard Laager, our log files will be considerably shorter and we'll be able to see the correct smileys, regardless of log type. committer: Tailor Script diff -r de96582ba40a -r 6480697e907b src/gtklog.c --- a/src/gtklog.c Sun Feb 27 20:47:00 2005 +0000 +++ b/src/gtklog.c Mon Feb 28 18:18:22 2005 +0000 @@ -191,6 +191,8 @@ title = title_utf8; gtk_window_set_title(GTK_WINDOW(viewer->window), title); gtk_imhtml_clear(GTK_IMHTML(viewer->imhtml)); + gtk_imhtml_set_protocol_name(GTK_IMHTML(viewer->imhtml), + gaim_account_get_protocol_name(log->account)); gtk_imhtml_append_text(GTK_IMHTML(viewer->imhtml), read, GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_TITLE | GTK_IMHTML_NO_SCROLL | ((flags & GAIM_LOG_READ_NO_NEWLINE) ? GTK_IMHTML_NO_NEWLINE : 0)); diff -r de96582ba40a -r 6480697e907b src/log.c --- a/src/log.c Sun Feb 27 20:47:00 2005 +0000 +++ b/src/log.c Mon Feb 28 18:18:22 2005 +0000 @@ -562,7 +562,6 @@ char *msg_fixed; char date[64]; GaimPlugin *plugin = gaim_find_prpl(gaim_account_get_protocol_id(log->account)); - const char *prpl_name = plugin->info->name; struct generic_logger_data *data = log->logger_data; if(!data) { @@ -610,18 +609,18 @@ fprintf(data->file, _("(%s) %s <AUTO-REPLY>: %s
\n"), date, from, msg_fixed); } else if (type & GAIM_MESSAGE_RECV) { if(gaim_message_meify(msg_fixed, -1)) - fprintf(data->file, "(%s) ***%s %s
\n", - date, from, prpl_name, msg_fixed); + fprintf(data->file, "(%s) ***%s %s
\n", + date, from, msg_fixed); else - fprintf(data->file, "(%s) %s: %s
\n", - date, from, prpl_name, msg_fixed); + fprintf(data->file, "(%s) %s: %s
\n", + date, from, msg_fixed); } else if (type & GAIM_MESSAGE_SEND) { if(gaim_message_meify(msg_fixed, -1)) - fprintf(data->file, "(%s) ***%s %s
\n", - date, from, prpl_name, msg_fixed); + fprintf(data->file, "(%s) ***%s %s
\n", + date, from, msg_fixed); else - fprintf(data->file, "(%s) %s: %s
\n", - date, from, prpl_name, msg_fixed); + fprintf(data->file, "(%s) %s: %s
\n", + date, from, msg_fixed); } }