From 8dedf0ee7c2a8b80d422e5e345a8f70828b3a37c Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 10 May 2005 00:40:50 +0000 Subject: Added socket engine to version response git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1352 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4979f4d48..6b6b33147 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2896,7 +2896,12 @@ std::string GetVersionString() s1 = savept; v2 = strtok_r(s1," ",&savept); s1 = savept; - snprintf(versiondata,MAXBUF,"%s Rev. %s %s :%s (O=%lu)",VERSION,v2,ServerName,SYSTEM,(unsigned long)OPTIMISATION); +#ifdef USE_KQUEUE + char socketengine[] = "kqueue"; +#else + char socketengine[] = "select"; +#endif + snprintf(versiondata,MAXBUF,"%s Rev. %s %s :%s (O=%lu) [SE=%s]",VERSION,v2,ServerName,SYSTEM,(unsigned long)OPTIMISATION,socketengine); return versiondata; } -- cgit v1.2.3