1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

IRSSI_VERSION_DATE is now a number, so you can do #iffing with it

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2252 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-12-15 19:28:44 +00:00 committed by cras
parent c0620e0804
commit 1aed7cb956
4 changed files with 6 additions and 5 deletions

View File

@ -363,7 +363,8 @@ static char *expando_target(SERVER_REC *server, void *item, int *free_ret)
/* client release date (numeric version string) */
static char *expando_releasedate(SERVER_REC *server, void *item, int *free_ret)
{
return IRSSI_VERSION_DATE;
*free_ret = TRUE;
return g_strdup_printf("%d", IRSSI_VERSION_DATE);
}
/* current working directory */

View File

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

View File

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

View File

@ -438,7 +438,7 @@ CODE:
OUTPUT:
RETVAL
char *
int
version()
CODE:
RETVAL = IRSSI_VERSION_DATE;