aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/addon/libkviaddon.cpp
diff options
context:
space:
mode:
authorGravatar Fabio Bas2010-12-05 18:01:41 +0000
committerGravatar Fabio Bas2010-12-05 18:01:41 +0000
commitde0ab29121ffa5939abba884af0ec18dc899ffda (patch)
treeae56c6e4e6f11a0a32df7077d315b0006e7d609a /src/modules/addon/libkviaddon.cpp
parentdisable mouseover effect on macosx to avoid its misbehaviour (diff)
downloadKVIrc-de0ab29121ffa5939abba884af0ec18dc899ffda.tar.gz
KVIrc-de0ab29121ffa5939abba884af0ec18dc899ffda.tar.bz2
KVIrc-de0ab29121ffa5939abba884af0ec18dc899ffda.zip
a lot of typo and documentarion fixes by OmegaPhil
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5175 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/addon/libkviaddon.cpp')
-rw-r--r--src/modules/addon/libkviaddon.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/modules/addon/libkviaddon.cpp b/src/modules/addon/libkviaddon.cpp
index e3a50677d..394105733 100644
--- a/src/modules/addon/libkviaddon.cpp
+++ b/src/modules/addon/libkviaddon.cpp
@@ -603,8 +603,8 @@ static bool addon_kvs_cmd_register(KviKvsModuleCallbackCommandCall * c)
@switches:
!sw: -q | --quiet
Makes the command run quietly
- !sw: -s | --skip-inexisting
- Skip inexisting entries in the [files] list
+ !sw: -s | --skip-inexistant
+ Skip inexistant entries in the [files] list
@description:
Installs the [files] for the addon identified by the specified <id>.
The files will be automatically removed when the addon is uninstalled.
@@ -638,7 +638,8 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c)
KVSM_PARAMETERS_END(c)
bool bQuiet = c->switches()->find('q',"quiet");
- bool bSkipInexisting = c->switches()->find('i',"skip-inexisting");
+ // we had a typo here, support the old switch name for backward scripts compatibility
+ bool bSkipInexistant = c->switches()->find('i',"skip-inexistant") || c->switches()->find('i',"skip-inexisting");
KviKvsScriptAddon * a = KviKvsScriptAddonManager::instance()->findAddon(szName);
if(!a)
@@ -685,10 +686,10 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c)
QDir dir(szPath);
if(!dir.exists())
{
- if(!bSkipInexisting)
+ if(!bSkipInexistant)
return c->error(__tr2qs_ctx("The directory '%1' doesn't exist","addon").arg(szPath));
if(!bQuiet)
- c->warning(__tr2qs_ctx("Skipping inexisting entry '%1'","addon").arg(szEntry));
+ c->warning(__tr2qs_ctx("Skipping inexistant entry '%1'","addon").arg(szEntry));
continue;
}
@@ -708,16 +709,16 @@ static bool addon_kvs_cmd_installfiles(KviKvsModuleCommandCall * c)
QFileInfo inf(szEntry);
if(!inf.exists())
{
- if(!bSkipInexisting)
+ if(!bSkipInexistant)
return c->error(__tr2qs_ctx("The file '%1' doesn't exist","addon").arg(szEntry));
if(!bQuiet)
- c->warning(__tr2qs_ctx("Skipping inexisting entry '%1'","addon").arg(szEntry));
+ c->warning(__tr2qs_ctx("Skipping inexistant entry '%1'","addon").arg(szEntry));
continue;
}
if(!inf.isFile())
{
- if(!bSkipInexisting)
+ if(!bSkipInexistant)
return c->error(__tr2qs_ctx("The entry '%1' is not a file","addon").arg(szEntry));
if(!bQuiet)
c->warning(__tr2qs_ctx("Skipping invalid entry '%1'","addon").arg(szEntry));