]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
Remove arch from CTCP VERSION on win32 origin/wip/remove-ctcp-sysinfo
authorPatrick Griffis <redacted>
Mon, 20 Nov 2017 23:40:31 +0000 (18:40 -0500)
committerPatrick Griffis <redacted>
Mon, 20 Nov 2017 23:40:31 +0000 (18:40 -0500)
Also probably not useful information.

src/common/ctcp.c

index a48f9a749a91deaac5afab6f5df16fa282b975d8..6faa82307e18fb3353093f04b1a812cc1afc51ac 100644 (file)
@@ -91,7 +91,6 @@ ctcp_handle (session *sess, char *to, char *nick, char *ip,
        char *po;
        session *chansess;
        server *serv = sess->server;
-       char outbuf[1024];
        int ctcp_offset = 2;
 
        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)
        {
-#ifdef WIN32
-               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);
+               serv->p_nctcp (serv, nick, "VERSION HexChat "PACKAGE_VERSION);
        }
 
        if (word[4][1] == '\0')