mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
module check irssi version
Add explicit checks into every module to match the ABI version defined in common.h
This commit is contained in:
parent
4dc2bab4b4
commit
ff8ccaf08b
10 changed files with 58 additions and 1 deletions
|
|
@ -414,6 +414,13 @@ static char *expando_releasetime(SERVER_REC *server, void *item, int *free_ret)
|
|||
return g_strdup_printf("%04d", IRSSI_VERSION_TIME);
|
||||
}
|
||||
|
||||
/* client abi */
|
||||
static char *expando_abiversion(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
*free_ret = TRUE;
|
||||
return g_strdup_printf("%d", IRSSI_ABI_VERSION);
|
||||
}
|
||||
|
||||
/* current working directory */
|
||||
static char *expando_workdir(SERVER_REC *server, void *item, int *free_ret)
|
||||
{
|
||||
|
|
@ -658,6 +665,8 @@ void expandos_init(void)
|
|||
"", EXPANDO_NEVER, NULL);
|
||||
expando_create("versiontime", expando_releasetime,
|
||||
"", EXPANDO_NEVER, NULL);
|
||||
expando_create("abiversion", expando_abiversion,
|
||||
"", EXPANDO_NEVER, NULL);
|
||||
expando_create("W", expando_workdir, NULL);
|
||||
expando_create("Y", expando_realname,
|
||||
"window changed", EXPANDO_ARG_NONE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue