summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-10 00:40:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-10 00:40:50 +0000
commit8dedf0ee7c2a8b80d422e5e345a8f70828b3a37c (patch)
treeb3110eb93c357ec7ac226ddb34c1b596e31067f1
parentc2ddd50a5db3211d8f888e0b370bde3e9836cbb3 (diff)
Added socket engine to version response
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1352 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp7
1 files changed, 6 insertions, 1 deletions
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;
}