From b9de4161887e9793f7792ebb743525a1cb62c8a0 Mon Sep 17 00:00:00 2001 From: Harvie Date: Mon, 21 Feb 2011 04:05:32 +0100 Subject: [PATCH] Added variables AGENT and AGENT_VERSION --- answerscripts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2