mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
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
This commit is contained in:
parent
0ccf0ebdff
commit
de6f8a7439
@ -445,7 +445,7 @@ version()
|
|||||||
PREINIT:
|
PREINIT:
|
||||||
char version[100];
|
char version[100];
|
||||||
CODE:
|
CODE:
|
||||||
g_snprintf(version, sizeof(version), "%d.%d",
|
g_snprintf(version, sizeof(version), "%d.%04d",
|
||||||
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
|
IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
|
||||||
RETVAL = version;
|
RETVAL = version;
|
||||||
OUTPUT:
|
OUTPUT:
|
||||||
|
Loading…
Reference in New Issue
Block a user