comparison mcabber/src/main.c @ 777:e6d42f239541

"/version" shows Mercurial changeset (if there's one)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 26 Mar 2006 23:30:21 +0200
parents 46304b773a44
children 057ffe7c43dc
comparison
equal deleted inserted replaced
776:df60fe695dc0 777:e6d42f239541
38 #include "roster.h" 38 #include "roster.h"
39 #include "commands.h" 39 #include "commands.h"
40 #include "histolog.h" 40 #include "histolog.h"
41 #include "hooks.h" 41 #include "hooks.h"
42 #include "utils.h" 42 #include "utils.h"
43 43 #include "hgcset.h"
44
45
46 char *mcabber_version(void)
47 {
48 char *ver;
49 #ifdef HGCSET
50 ver = g_strdup_printf("%s (%s)", PACKAGE_VERSION, HGCSET);
51 #else
52 ver = g_strdup(PACKAGE_VERSION);
53 #endif
54 return ver;
55 }
44 56
45 void mcabber_connect(void) 57 void mcabber_connect(void)
46 { 58 {
47 const char *username, *password, *resource, *servername; 59 const char *username, *password, *resource, *servername;
48 const char *proxy_host; 60 const char *proxy_host;