aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/system/libkvisystem.cpp
diff options
context:
space:
mode:
authorGravatar Noldor2008-05-15 17:35:44 +0000
committerGravatar Noldor2008-05-15 17:35:44 +0000
commitb2caa0ba0c49ea8c1909d9929e39727a43448f1c (patch)
tree1bd0dadec55ddedba2f0ec01d5566f0fe52d472a /src/modules/system/libkvisystem.cpp
parentfix (diff)
downloadKVIrc-b2caa0ba0c49ea8c1909d9929e39727a43448f1c.tar.gz
KVIrc-b2caa0ba0c49ea8c1909d9929e39727a43448f1c.tar.bz2
KVIrc-b2caa0ba0c49ea8c1909d9929e39727a43448f1c.zip
QT4 port commit :) (modules) (wip)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1786 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/system/libkvisystem.cpp')
-rw-r--r--src/modules/system/libkvisystem.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/modules/system/libkvisystem.cpp b/src/modules/system/libkvisystem.cpp
index 6b328059b..00d4179ee 100644
--- a/src/modules/system/libkvisystem.cpp
+++ b/src/modules/system/libkvisystem.cpp
@@ -202,14 +202,15 @@ static bool system_kvs_fnc_getenv(KviKvsModuleFunctionCall *c)
KVSM_PARAMETERS_END(c)
KviQCString 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");
+/*#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 = kvi_getenv(szVar.data());
c->returnValue()->setString(b ? QString::fromLocal8Bit(b) : QString::null);
-#endif
+//#endif
return true;
}