From 5b5df3ebbe1eb78aa1d0b2f76420d882ee5efb7a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 16 Dec 2001 02:21:27 +0000 Subject: /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 --- src/fe-common/core/fe-core-commands.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/fe-common/core/fe-core-commands.c') diff --git a/src/fe-common/core/fe-core-commands.c b/src/fe-common/core/fe-core-commands.c index eb7f2abb..3bf5a201 100644 --- a/src/fe-common/core/fe-core-commands.c +++ b/src/fe-common/core/fe-core-commands.c @@ -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); } } -- cgit v1.2.3