summaryrefslogtreecommitdiff
path: root/src/core/expandos.c
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-12-15 11:09:48 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-12-15 11:09:48 +0100
commit311b01e72a81a6fdef1c477d3255b76e545d49f1 (patch)
tree76e1bf83acc673f3e3ece855076136c819b3f057 /src/core/expandos.c
parent665f0b83d7f055892abbae573b599eb02a5be0cb (diff)
parentff8ccaf08b60d88a67ddf810f8229f910f016cf7 (diff)
downloadirssi-311b01e72a81a6fdef1c477d3255b76e545d49f1.zip
Merge pull request #377 from ailin-nemui/moduleversion2
module check irssi version (manual way)
Diffstat (limited to 'src/core/expandos.c')
-rw-r--r--src/core/expandos.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/expandos.c b/src/core/expandos.c
index 1fc517af..67aea837 100644
--- a/src/core/expandos.c
+++ b/src/core/expandos.c
@@ -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,