diff options
| author | 2008-04-08 00:54:25 +0000 | |
|---|---|---|
| committer | 2008-04-08 00:54:25 +0000 | |
| commit | aa923fe89c8fe5c1d5d024b4a1c06236c36ab8f6 (patch) | |
| tree | 54cfa8986455612f9fb056e11c07e1a6c10d3041 /src/modules/regchan | |
| parent | quick fix (diff) | |
| download | KVIrc-aa923fe89c8fe5c1d5d024b4a1c06236c36ab8f6.tar.gz KVIrc-aa923fe89c8fe5c1d5d024b4a1c06236c36ab8f6.tar.bz2 KVIrc-aa923fe89c8fe5c1d5d024b4a1c06236c36ab8f6.zip | |
code clean and fixes
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1422 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/regchan')
| -rw-r--r-- | src/modules/regchan/libkviregchan.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/modules/regchan/libkviregchan.cpp b/src/modules/regchan/libkviregchan.cpp index d33d1879d..489605717 100644 --- a/src/modules/regchan/libkviregchan.cpp +++ b/src/modules/regchan/libkviregchan.cpp @@ -23,8 +23,6 @@ //====================================================================================== // incomplete #include "kvi_module.h" - - #include "kvi_regchan.h" #include "kvi_locale.h" #include "kvi_out.h" @@ -66,7 +64,7 @@ extern KVIRC_API KviRegisteredChannelDataBase * g_pRegisteredChannelDataBase; */ static bool regchan_kvs_cmd_add(KviKvsModuleCommandCall * c) -{ +{ QString szChan,szNetmask; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_NONEMPTYSTRING,0,szChan) @@ -105,7 +103,7 @@ static bool regchan_kvs_cmd_add(KviKvsModuleCommandCall * c) [cmd]regchan.add[/cmd] */ static bool regchan_kvs_cmd_remove(KviKvsModuleCommandCall * c) -{ +{ QString szChan,szNetwork; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_NONEMPTYSTRING,0,szChan) @@ -155,7 +153,7 @@ static bool regchan_kvs_cmd_remove(KviKvsModuleCommandCall * c) */ static bool regchan_kvs_cmd_setProperty(KviKvsModuleCommandCall * c) -{ +{ QString szChan,szNetwork,szProperty,szValue; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_NONEMPTYSTRING,0,szChan) @@ -194,7 +192,7 @@ static bool regchan_kvs_cmd_setProperty(KviKvsModuleCommandCall * c) */ static bool regchan_kvs_cmd_showlist(KviKvsModuleCommandCall * c) -{ +{ c->window()->output(KVI_OUT_SYSTEMMESSAGE,__tr2qs("Registered channel list:")); int tot = 0; @@ -243,7 +241,7 @@ static bool regchan_kvs_cmd_showlist(KviKvsModuleCommandCall * c) */ static bool regchan_kvs_fnc_list(KviKvsModuleFunctionCall * c) -{ +{ QString szChan,szNetmask; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_STRING,KVS_PF_OPTIONAL,szChan) @@ -304,7 +302,7 @@ static bool regchan_kvs_fnc_list(KviKvsModuleFunctionCall * c) */ static bool regchan_kvs_fnc_property(KviKvsModuleFunctionCall * c) -{ +{ QString szChan,szNetwork,szPropertyName; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_STRING,0,szChan) @@ -379,7 +377,7 @@ static bool regchan_kvs_fnc_match(KviKvsModuleFunctionCall * c) */ static bool regchan_kvs_fnc_find(KviKvsModuleFunctionCall * c) -{ +{ QString szChan,szNetmask; KVSM_PARAMETERS_BEGIN(c) KVSM_PARAMETER("channel name",KVS_PT_STRING,0,szChan) @@ -416,7 +414,7 @@ static bool regchan_module_can_unload(KviModule *) KVIRC_MODULE( "RegChan", // module name - "1.0.0", // module version + "4.0.0", // module version "Copyright (C) 2002 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) "Script interface to the registered channels database", regchan_module_init, |
