mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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:
parent
c0620e0804
commit
1aed7cb956
@ -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 */
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -438,7 +438,7 @@ CODE:
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
char *
|
||||
int
|
||||
version()
|
||||
CODE:
|
||||
RETVAL = IRSSI_VERSION_DATE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user