Skip to content
Browse files

clean up version strings

  • Loading branch information...
1 parent 8a04421 commit 9a2e129f7149b2568ecaf0dbdf43258f91d9341e @youknowone youknowone committed May 5, 2012
Showing with 5 additions and 10 deletions.
  1. +3 −0 .gitignore
  2. +1 −8 config.h
  3. +1 −2 src/common/ctcp.c
View
3 .gitignore
@@ -1,2 +1,5 @@
+
+config.package_name.in.h
+
plugins/perl/irc.pm.h
plugins/perl/xchat.pm.h
View
9 config.h
@@ -308,18 +308,12 @@
/* Define to the full name of this package. */
#define PACKAGE_NAME "XChat"
-/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "XChat 2.8.8-svn1504"
-
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "xchat"
/* Define to the home page for this package. */
#define PACKAGE_URL "http://xchataqua.github.com/"
-/* Define to the version of this package. */
-#define PACKAGE_VERSION "2.8.8-svn1504"
-
#define PREFIX "/tmp/local"
/* Define if <inttypes.h> exists and defines unusable PRI* macros. */
@@ -392,10 +386,9 @@
# define FORK_DISABLED 1
#endif
+#include "config.package_name.in.h"
#include "build_number.h"
-#define MYVERSION XCHAT_AQUA_VERSION_STRING
-
/* Enable extensions on AIX 3, Interix. */
#ifndef _ALL_SOURCE
# define _ALL_SOURCE 1
View
3 src/common/ctcp.c
@@ -135,8 +135,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
if (!strcasecmp (msg, "VERSION") && !prefs.hidever)
{
#ifdef FE_AQUA || FE_IOS
- snprintf (outbuf, sizeof (outbuf), "VERSION X-Chat Aqua %s (xchat "PACKAGE_VERSION") %s",
- MYVERSION, get_cpu_str ());
+ snprintf (outbuf, sizeof (outbuf), "VERSION X-Chat Aqua "XCHAT_AQUA_VERSION_STRING" (xchat "PACKAGE_VERSION") %s", get_cpu_str ());
#else
snprintf (outbuf, sizeof (outbuf), "VERSION xchat "PACKAGE_VERSION" %s",
get_cpu_str ());

0 comments on commit 9a2e129

Please sign in to comment.
Something went wrong with that request. Please try again.