From 98999bb19d7660321c7151371def629674c5cbc0 Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Fri, 17 Jun 2011 00:01:25 +0200 Subject: add support for Windows 8 in CTCP VERSION reply --- src/common/util.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/util.c b/src/common/util.c index 5677e82a..b9bf3b35 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -726,6 +726,16 @@ get_cpu_str (void) strcpy (winver, "Server 2008 R2"); } break; + case 2: + if (osvi.wProductType == VER_NT_WORKSTATION) + { + strcpy (winver, "8"); + } + else + { + strcpy (winver, "8 Server"); + } + break; } break; } -- cgit 1.4.1