summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-16 02:21:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-16 02:21:27 +0000
commit5b5df3ebbe1eb78aa1d0b2f76420d882ee5efb7a (patch)
treede28dbdbacc29d3dc57bda161bced13794e0a62c /src/fe-common/core
parent6720940e1af9a88b30637098c78fe947ea81948d (diff)
downloadirssi-5b5df3ebbe1eb78aa1d0b2f76420d882ee5efb7a.zip
/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
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/fe-core-commands.c7
1 files changed, 5 insertions, 2 deletions
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);
}
}