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

The month name parameter was supposed to go to daychange format, not to

timestamp.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@408 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-01 21:15:53 +00:00 committed by cras
parent 9eb051b3b8
commit f4b1470539
2 changed files with 4 additions and 4 deletions

View File

@ -645,7 +645,6 @@ static void newline(WINDOW_REC *window)
static char *get_timestamp(TEXT_DEST_REC *dest)
{
struct tm *tm;
char month[10];
time_t t;
int diff;
@ -662,10 +661,9 @@ static char *get_timestamp(TEXT_DEST_REC *dest)
}
tm = localtime(&t);
strftime(month, sizeof(month)-1, "%b", tm);
return output_format_text(dest, IRCTXT_TIMESTAMP,
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec, month);
tm->tm_hour, tm->tm_min, tm->tm_sec);
}
static char *get_server_tag(TEXT_DEST_REC *dest)

View File

@ -395,11 +395,13 @@ static void sig_server_disconnected(void *server)
static void sig_print_text(void)
{
GSList *tmp;
char month[10];
time_t t;
struct tm *tm;
t = time(NULL);
tm = localtime(&t);
strftime(month, sizeof(month)-1, "%b", tm);
if (tm->tm_hour != 0 || tm->tm_min != 0)
return;
@ -410,7 +412,7 @@ static void sig_print_text(void)
/* day changed, print notice about it to every window */
for (tmp = windows; tmp != NULL; tmp = tmp->next) {
printformat_window(tmp->data, MSGLEVEL_NEVER, IRCTXT_DAYCHANGE,
tm->tm_mday, tm->tm_mon+1, 1900+tm->tm_year);
tm->tm_mday, tm->tm_mon+1, 1900+tm->tm_year, month);
}
}