Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/commands.c @ 1921:7d72b7d2d93a
Add module information in the output of /version
This can be useful at run time...
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 10 Nov 2010 13:59:48 +0100 |
parents | ad1f7e7c2745 |
children | 924f4552996c |
line wrap: on
line diff
--- 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)