Leading zeros didn't work well in IRSSI_VERSION_TIME.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2261 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-16 01:41:29 +00:00 committed by cras
commit 6720940e1a
4 changed files with 4 additions and 4 deletions

View file

@ -371,7 +371,7 @@ static char *expando_releasedate(SERVER_REC *server, void *item, int *free_ret)
static char *expando_releasetime(SERVER_REC *server, void *item, int *free_ret)
{
*free_ret = TRUE;
return g_strdup_printf("%d", IRSSI_VERSION_TIME);
return g_strdup_printf("%04d", IRSSI_VERSION_TIME);
}
/* current working directory */

View file

@ -97,7 +97,7 @@ void fe_core_commands_deinit(void);
static void print_version(void)
{
printf(PACKAGE" " IRSSI_VERSION" (%d %d)\n",
printf(PACKAGE" " IRSSI_VERSION" (%d %04d)\n",
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
exit(0);
}

View file

@ -96,7 +96,7 @@ static void cmd_version(char *data)
if (*data == '\0') {
printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
"Client: "PACKAGE" " IRSSI_VERSION" (%d %d)",
"Client: "PACKAGE" " IRSSI_VERSION" (%d %04d)",
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
}
}