Add module information in the output of /version
authorMikael Berthe <mikael@lilotux.net>
Wed, 10 Nov 2010 13:59:48 +0100
changeset 1921 7d72b7d2d93a
parent 1920 bfa507815e0c
child 1922 4ba68ad737bc
Add module information in the output of /version This can be useful at run time...
mcabber/mcabber/commands.c
--- a/mcabber/mcabber/commands.c	Tue Nov 09 12:44:53 2010 +0100
+++ b/mcabber/mcabber/commands.c	Wed Nov 10 13:59:48 2010 +0100
@@ -3217,6 +3217,13 @@
   gchar *ver = mcabber_version();
   scr_LogPrint(LPRINT_NORMAL, "This is mcabber version %s.", ver);
   g_free(ver);
+#ifdef MODULES_ENABLE
+  scr_LogPrint(LPRINT_NORMAL, "Compiled with modules support (API %s:%d-%d).",
+         MCABBER_BRANCH, MCABBER_API_MIN, MCABBER_API_VERSION);
+# ifdef PKGLIB_DIR
+  scr_LogPrint(LPRINT_NORMAL, " Modules directory: " PKGLIB_DIR);
+# endif
+#endif
 }
 
 static void do_request(char *arg)