Remove arch from CTCP VERSION on win32

Also probably not useful information.
This commit is contained in:
Patrick Griffis 2017-11-20 18:40:31 -05:00
parent 779d373e1d
commit fbee94cb81

View File

@ -91,7 +91,6 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
char *po; char *po;
session *chansess; session *chansess;
server *serv = sess->server; server *serv = sess->server;
char outbuf[1024];
int ctcp_offset = 2; int ctcp_offset = 2;
if (serv->have_idmsg && (word[4][1] == '+' || word[4][1] == '-') ) if (serv->have_idmsg && (word[4][1] == '+' || word[4][1] == '-') )
@ -138,13 +137,7 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
if (!g_ascii_strcasecmp (msg, "VERSION") && !prefs.hex_irc_hide_version) if (!g_ascii_strcasecmp (msg, "VERSION") && !prefs.hex_irc_hide_version)
{ {
#ifdef WIN32 serv->p_nctcp (serv, nick, "VERSION HexChat "PACKAGE_VERSION);
g_snprintf (outbuf, sizeof (outbuf), "VERSION HexChat "PACKAGE_VERSION" [x%d]",
get_cpu_arch ());
#else
g_snprintf (outbuf, sizeof (outbuf), "VERSION HexChat "PACKAGE_VERSION);
#endif
serv->p_nctcp (serv, nick, outbuf);
} }
if (word[4][1] == '\0') if (word[4][1] == '\0')