X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=answerscripts.c;h=d561c373743bea61cb133ac172a6b069a955c6ee;hb=b9de4161887e9793f7792ebb743525a1cb62c8a0;hp=81f20b293142cf83d26ddac80f9aa5c6396dbca9;hpb=961500218ef236a40f395176dd0b5f6a22402b92;p=mirrors%2Flibpurple-core-answerscripts.git diff --git a/answerscripts.c b/answerscripts.c index 81f20b2..d561c37 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -194,7 +194,9 @@ static PurplePluginInfo info = { }; static void init_plugin(PurplePlugin * plugin) { - + //Export static environment variables + setenv(ENV_PREFIX "AGENT", (char *) purple_core_get_ui(), 1); + setenv(ENV_PREFIX "AGENT_VERSION", (char *) purple_core_get_version(), 1); } PURPLE_INIT_PLUGIN(autoanswer, init_plugin, info)