mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
/VERSION printed time wrong, hopefully the last version fix..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2262 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6720940e1a
commit
5b5df3ebbe
@ -92,12 +92,15 @@ static void cmd_echo(const char *data, void *server, WI_ITEM_REC *item)
|
||||
/* SYNTAX: VERSION */
|
||||
static void cmd_version(char *data)
|
||||
{
|
||||
char time[10];
|
||||
|
||||
g_return_if_fail(data != NULL);
|
||||
|
||||
if (*data == '\0') {
|
||||
g_snprintf(time, sizeof(time), "%04d", IRSSI_VERSION_TIME);
|
||||
printtext(NULL, NULL, MSGLEVEL_CLIENTNOTICE,
|
||||
"Client: "PACKAGE" " IRSSI_VERSION" (%d %04d)",
|
||||
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
|
||||
"Client: "PACKAGE" " IRSSI_VERSION" (%d %s)",
|
||||
IRSSI_VERSION_DATE, time);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user