summaryrefslogtreecommitdiff
path: root/src/perl/common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-12-27 22:35:16 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-12-27 22:35:16 +0000
commitde6f8a7439d2defae38fc83fdc594baa78ea9e97 (patch)
treed7a37eb3f8e06a415e5121bfa06f34ad3758dc83 /src/perl/common
parent0ccf0ebdff48e4c8e9232bbd3d2354c34c66a23c (diff)
downloadirssi-de6f8a7439d2defae38fc83fdc594baa78ea9e97.zip
Irssi::version() should return the time always with 4 digits, padded with
zeros if needed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2285 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/common')
-rw-r--r--src/perl/common/Core.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/perl/common/Core.xs b/src/perl/common/Core.xs
index 80a5edfe..26e085cc 100644
--- a/src/perl/common/Core.xs
+++ b/src/perl/common/Core.xs
@@ -445,7 +445,7 @@ version()
PREINIT:
char version[100];
CODE:
- g_snprintf(version, sizeof(version), "%d.%d",
+ g_snprintf(version, sizeof(version), "%d.%04d",
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
RETVAL = version;
OUTPUT: