1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

lastlog.c is a mix of tab and space indentation. My changes now use tabs.

This commit is contained in:
Vesa Pirila 2015-02-16 09:49:22 +02:00
parent cd5a571fd8
commit 895ac10c4e

View File

@ -76,19 +76,19 @@ int cmd_options_get_level(const char *cmd, GHashTable *optlist)
static void prepend_date(WINDOW_REC *window, LINE_REC *rec, GString *line) static void prepend_date(WINDOW_REC *window, LINE_REC *rec, GString *line)
{ {
THEME_REC *theme = NULL; THEME_REC *theme = NULL;
TEXT_DEST_REC dest = {0}; TEXT_DEST_REC dest = {0};
char *format = NULL, datestamp[20] = {0}; char *format = NULL, datestamp[20] = {0};
struct tm *tm = localtime(&rec->info.time); struct tm *tm = localtime(&rec->info.time);
int ret = 0; int ret = 0;
theme = window->theme != NULL ? window->theme : current_theme; theme = window->theme != NULL ? window->theme : current_theme;
format_create_dest(&dest, NULL, NULL, MSGLEVEL_LASTLOG, window); format_create_dest(&dest, NULL, NULL, MSGLEVEL_LASTLOG, window);
format = format_get_text_theme(theme, MODULE_NAME, &dest, TXT_LASTLOG_DATE); format = format_get_text_theme(theme, MODULE_NAME, &dest, TXT_LASTLOG_DATE);
ret = strftime(datestamp, sizeof(datestamp), format, tm); ret = strftime(datestamp, sizeof(datestamp), format, tm);
g_free(format); g_free(format);
if (ret <= 0) return; if (ret <= 0) return;
g_string_prepend(line, datestamp); g_string_prepend(line, datestamp);
} }