aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/libkvisystem.cpp
diff options
context:
space:
mode:
authorGravatar un1versal2016-05-08 02:36:03 +0100
committerGravatar un1versal2016-05-08 02:37:37 +0100
commit5f0292c32b336be0bb279a7511a9ee37ba9df3fa (patch)
tree28dbeb31c6c6aa730b2c79e904633148aff301cc /src/modules/system/libkvisystem.cpp
parentcleanup: separators and spacing (diff)
downloadKVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.tar.gz
KVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.tar.bz2
KVIrc-5f0292c32b336be0bb279a7511a9ee37ba9df3fa.zip
cleanup: remove more ancient commented code p3
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
-rw-r--r--src/modules/system/libkvisystem.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp
index cb533cc7d..0b370b953 100644
--- a/src/modules/system/libkvisystem.cpp
+++ b/src/modules/system/libkvisystem.cpp
@@ -209,15 +209,9 @@ static bool system_kvs_fnc_getenv(KviKvsModuleFunctionCall * c)
KVSM_PARAMETERS_END(c)
QByteArray szVar = szVariable.toLocal8Bit();
- /*#ifdef COMPILE_ON_WINDOWS
- QString env= getenv(szVar.data());
- QString def= __tr2qs("No environment variable found, please don't use the %% in the request");
- c->returnValue()->setString(env.isEmpty() ? QString::fromLocal8Bit(env) : QString::fromLocal8Bit(def));
-#else
-*/
+
char * b = KviEnvironment::getVariable(szVar.data());
c->returnValue()->setString(b ? QString::fromLocal8Bit(b) : QString());
- //#endif
return true;
}
@@ -831,6 +825,7 @@ static bool system_kvs_cmd_runcmd(KviKvsModuleCommandCall * c)
1 (no conversion), 2 (short), 4 (32 bit int) and 8 (64 bit int).
If omitted, bytecount is assumed to be 4.
*/
+
static bool system_kvs_fnc_ntohi(KviKvsModuleFunctionCall * c)
{
kvs_int_t iValue;
@@ -886,6 +881,7 @@ static bool system_kvs_fnc_ntohi(KviKvsModuleFunctionCall * c)
1 (no conversion), 2 (short), 4 (32 bit int) and 8 (64 bit int).
If omitted, bytecount is assumed to be 4.
*/
+
static bool system_kvs_fnc_htoni(KviKvsModuleFunctionCall * c)
{
kvs_int_t iValue;