From fc30c3ea279b53b2c0e2a3b71f9811ff1033076c Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Sat, 25 Dec 2010 03:14:10 +0000 Subject: Added the very first shy 'auto-join this channel' feature to the window popup. .serverJoinChannels and .networkJoinChannels now return arrays. Reworked a bit the 'network name' mess in the IrcConnection... possibly needs more reorganizing. Some small tweaks in the server dialog. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5226 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/serverdb/libkviserverdb.cpp | 206 +++++++++++++++++++------------- 1 file changed, 121 insertions(+), 85 deletions(-) (limited to 'src/modules/serverdb/libkviserverdb.cpp') diff --git a/src/modules/serverdb/libkviserverdb.cpp b/src/modules/serverdb/libkviserverdb.cpp index 9a91c06d9..6a73b11cd 100644 --- a/src/modules/serverdb/libkviserverdb.cpp +++ b/src/modules/serverdb/libkviserverdb.cpp @@ -105,10 +105,10 @@ extern KVIRC_API KviServerDataBase * g_pServerDataBase; @short: Checks if the network already exists in the DB @syntax: - $serverdb.networkExists + $serverdb.networkExists() @description: Checks if the network already exists in the DB.[br] - It returns 1 if the network exixts, 0 otherwise + It returns 1 if the network exixts, 0 otherwise. @seealso: [module:serverdb]ServerDB module documentation[/module] */ @@ -146,7 +146,7 @@ static bool serverdb_kvs_fnc_networkExists(KviKvsModuleFunctionCall * c) @short: Checks if the network already exists in the DB @syntax: - $serverdb.serverExists([,]) + $serverdb.serverExists([,]) @description: Checks if the server already exists for a network in the DB.[br] If no network name is provided, the check is made globally.[br] @@ -212,7 +212,7 @@ static bool serverdb_kvs_fnc_serverExists(KviKvsModuleFunctionCall * c) return true; } -#define SERVERDB_GET_NETWORK_PROPERTY(__functionName,__callName) \ +#define BEGIN_SERVERDB_GET_NETWORK_PROPERTY(__functionName) \ static bool __functionName(KviKvsModuleFunctionCall * c) \ { \ QString szName; \ @@ -232,14 +232,21 @@ static bool serverdb_kvs_fnc_serverExists(KviKvsModuleFunctionCall * c) { \ c->error(__tr2qs_ctx("The specified network does not exist","serverdb")); \ return false; \ - } \ + } + + +#define END_SERVERDB_GET_NETWORK_PROPERTY \ + return true; \ + } + +#define SERVERDB_GET_NETWORK_PROPERTY(__functionName,__callName) \ + BEGIN_SERVERDB_GET_NETWORK_PROPERTY(__functionName) \ \ c->returnValue()->setString(pNetwork->__callName()); \ \ - return true; \ - } + END_SERVERDB_GET_NETWORK_PROPERTY -#define SERVERDB_GET_SERVER_PROPERTY(__functionName,__callName,__variantSetCallName) \ +#define BEGIN_SERVERDB_GET_SERVER_PROPERTY(__functionName) \ static bool __functionName(KviKvsModuleFunctionCall * c) \ { \ QString szNetName, szServName; \ @@ -273,13 +280,19 @@ static bool serverdb_kvs_fnc_serverExists(KviKvsModuleFunctionCall * c) { \ c->error(__tr2qs_ctx("The specified server does not exist","serverdb")); \ return false; \ - } \ - \ - c->returnValue()->__variantSetCallName(pServer->__callName()); \ - \ + } + + +#define END_SERVERDB_GET_SERVER_PROPERTY \ return true; \ } +#define SERVERDB_GET_SERVER_PROPERTY(__functionName,__callName,__variantSetCallName) \ + BEGIN_SERVERDB_GET_SERVER_PROPERTY(__functionName) \ + c->returnValue()->__variantSetCallName(pServer->__callName()); \ + END_SERVERDB_GET_SERVER_PROPERTY + + /* @doc: serverdb.networkNickName @type: @@ -289,7 +302,7 @@ static bool serverdb_kvs_fnc_serverExists(KviKvsModuleFunctionCall * c) @short: Returns the nickname @syntax: - $serverdb.networkNickName() + $serverdb.networkNickName() @description: Returns the nickname set for the network if set @seealso: @@ -306,9 +319,9 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkNickName,nickName) @short: Returns the username @syntax: - $serverdb.networkUserName() + $serverdb.networkUserName() @description: - Returns the username set for the network if set + Returns the username set for the network if set. @seealso: [module:serverdb]ServerDB module documentation[/module] */ @@ -323,7 +336,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkUserName,userName) @short: Returns the realname @syntax: - $serverdb.networkRealName() + $serverdb.networkRealName() @description: Returns the realname set for the network if set @seealso: @@ -340,7 +353,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkRealName,realName) @short: Returns the encoding @syntax: - $serverdb.networkEncoding() + $serverdb.networkEncoding() @description: Returns the encoding used for the network for server specific messages, like channel and nick names, if set @seealso: @@ -357,7 +370,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkEncoding,encoding) @short: Returns the encoding @syntax: - $serverdb.networkTextEncoding() + $serverdb.networkTextEncoding() @description: Returns the encoding used for the network for text messages, if set @seealso: @@ -374,7 +387,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkTextEncoding,textEncoding) @short: Returns the description @syntax: - $serverdb.networkDescription() + $serverdb.networkDescription() @description: Returns the description set for the network if set @seealso: @@ -391,7 +404,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkDescription,description) @short: Returns the connect command @syntax: - $serverdb.networkConnectCommand() + $serverdb.networkConnectCommand() @description: Returns the connect command set for the network if set @seealso: @@ -408,7 +421,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkConnectCommand,onConnectCo @short: Returns the login command @syntax: - $serverdb.networkLoginCommand() + $serverdb.networkLoginCommand() @description: Returns the login command set for the network if set @seealso: @@ -425,7 +438,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkLoginCommand,onLoginComman @short: Returns the name @syntax: - $serverdb.networkName() + $serverdb.networkName() @description: Returns the name of the network @seealso: @@ -442,14 +455,31 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkName,name) @short: Returns the list of autojoin channels @syntax: - $serverdb.networkJoinChannels() + $serverdb.networkJoinChannels() @description: - Returns a comma-separated list of autojoin channels and their relative passwords set for the network [br] - Each item in the list is in the format : + Returns an array of autojoin channels and their relative passwords set for the network [br] + Each item in the array is in the format : @seealso: [module:serverdb]ServerDB module documentation[/module] */ -SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkJoinChannels,autoJoinChannelListAsString) +BEGIN_SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkJoinChannels) + + KviKvsArray * pArray = new KviKvsArray(); + + QStringList * pAutoJoinChannels = pNetwork->autoJoinChannelList(); + if(pAutoJoinChannels) + { + kvs_uint_t idx = 0; + foreach(QString szEntry,*pAutoJoinChannels) + { + pArray->set(idx,new KviKvsVariant(szEntry)); + idx++; + } + } + + c->returnValue()->setArray(pArray); + +END_SERVERDB_GET_NETWORK_PROPERTY /* @doc: serverdb.serverNickName @@ -460,7 +490,7 @@ SERVERDB_GET_NETWORK_PROPERTY(serverdb_kvs_fnc_networkJoinChannels,autoJoinChann @short: Returns the nickname @syntax: - $serverdb.serverNickName(,) + $serverdb.serverNickName(,) @description: Returns the nickname set for the server of the network if set @seealso: @@ -477,7 +507,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverNickName,nickName,setString) @short: Returns the username @syntax: - $serverdb.serverUserName(,) + $serverdb.serverUserName(,) @description: Returns the username set for the server of the network if set @seealso: @@ -494,7 +524,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverUserName,userName,setString) @short: Returns the realname @syntax: - $serverdb.serverRealName(,) + $serverdb.serverRealName(,) @description: Returns the realname set for the server of the network if set @seealso: @@ -511,7 +541,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverRealName,realName,setString) @short: Returns the encoding @syntax: - $serverdb.serverEncoding(,) + $serverdb.serverEncoding(,) @description: Returns the encoding used for the server of the network for server specific messages, like channel and nick names, if set @seealso: @@ -528,7 +558,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverEncoding,encoding,setString) @short: Returns the encoding @syntax: - $serverdb.serverTextEncoding(,) + $serverdb.serverTextEncoding(,) @description: Returns the encoding used for the server of the network for server specific messages, like channel and nick names, if set @seealso: @@ -545,7 +575,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverTextEncoding,textEncoding,se @short: Returns the description @syntax: - $serverdb.serverDescription(,) + $serverdb.serverDescription(,) @description: Returns the description set for the server of the network if set @seealso: @@ -562,7 +592,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverDescription,description,setS @short: Returns the connect command @syntax: - $serverdb.serverConnectCommand(,) + $serverdb.serverConnectCommand(,) @description: Returns the connect command set for the server of the network if set @seealso: @@ -579,7 +609,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverConnectCommand,onConnectComm @short: Returns the login command @syntax: - $serverdb.serverLoginCommand(,) + $serverdb.serverLoginCommand(,) @description: Returns the login command set for the server of the network if set @seealso: @@ -596,7 +626,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverLoginCommand,onLoginCommand, @short: Returns the IP address @syntax: - $serverdb.serverIp(,) + $serverdb.serverIp(,) @description: Returns the IP address of the server of the network @seealso: @@ -613,7 +643,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverIp,ip,setString) @short: Returns the ID @syntax: - $serverdb.serverId(,) + $serverdb.serverId(,) @description: Returns the ID of the server of the network @seealso: @@ -630,7 +660,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverId,id,setString) @short: Returns the password @syntax: - $serverdb.serverPassword(,) + $serverdb.serverPassword(,) @description: Returns the password of the server of the network if set @seealso: @@ -647,7 +677,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverPassword,password,setString) @short: Returns the port @syntax: - $serverdb.serverPort(,) + $serverdb.serverPort(,) @description: Returns the port of the server of the network if set @seealso: @@ -664,7 +694,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverPort,port,setInteger) @short: Returns the autoconnect status @syntax: - $serverdb.isAutoConnect(,) + $serverdb.isAutoConnect(,) @description: Returns true if the server of the network if set to autoconnect, false otherwise @seealso: @@ -681,7 +711,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverAutoConnect,autoConnect,setB @short: Returns the IPv6 status @syntax: - $serverdb.isIPv6(,) + $serverdb.isIPv6(,) @description: Returns true if the server of the network if set to connect using IPv6 sockets, false otherwise @seealso: @@ -698,7 +728,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverIPv6,isIPv6,setBoolean) @short: Returns the SSL status @syntax: - $serverdb.isSSL(,) + $serverdb.isSSL(,) @description: Returns true if the server of the network if set to connect using SSL (Secure Socket Layer) sockets, false otherwise @seealso: @@ -715,7 +745,7 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverSSL,useSSL,setBoolean) @short: Returns the cache-ip status @syntax: - $serverdb.cacheIp(,) + $serverdb.cacheIp(,) @description: Returns true if KVIrc is set to cache the ip of the server of the network , false otherwise @seealso: @@ -732,14 +762,32 @@ SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverCacheIp,cacheIp,setBoolean) @short: Returns the list of autojoin channels @syntax: - $serverdb.serverJoinChannels(,) + $serverdb.serverJoinChannels(,) @description: - Returns a comma-separated list of autojoin channels and their relative passwords set for the server of the network [br] - Each item in the array is in the format : + Returns an array containing the autojoin channels and their relative passwords set for the server of the network [br] + Each item in the array is in the format channel_name:password @seealso: [module:serverdb]ServerDB module documentation[/module] */ -SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverJoinChannels,autoJoinChannelListAsString,setString) +BEGIN_SERVERDB_GET_SERVER_PROPERTY(serverdb_kvs_fnc_serverJoinChannels) + + KviKvsArray * pArray = new KviKvsArray(); + + QStringList * pAutoJoinChannels = pServer->autoJoinChannelList(); + if(pAutoJoinChannels) + { + kvs_uint_t idx = 0; + foreach(QString szEntry,*pAutoJoinChannels) + { + pArray->set(idx,new KviKvsVariant(szEntry)); + idx++; + } + } + + c->returnValue()->setArray(pArray); + +END_SERVERDB_GET_SERVER_PROPERTY + /* @doc: serverdb.addNetwork @@ -802,7 +850,7 @@ static bool serverdb_kvs_cmd_addNetwork(KviKvsModuleCommandCall * c) @short: Adds a server @syntax: - serverdb.addServer [switches] + serverdb.addServer [switches] @description: Adds the server to the network . @switches: @@ -899,11 +947,11 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) #define SERVERDB_SET_NETWORK_PROPERTY(__functionName,__callName) \ static bool __functionName(KviKvsModuleCommandCall * c) \ { \ - QString szName, szPropertyName; \ + QString szName, szPropertyValue; \ \ KVSM_PARAMETERS_BEGIN(c) \ KVSM_PARAMETER("name",KVS_PT_STRING,0,szName) \ - KVSM_PARAMETER("property",KVS_PT_STRING,KVS_PF_APPENDREMAINING,szPropertyName) \ + KVSM_PARAMETER("property",KVS_PT_STRING,KVS_PF_APPENDREMAINING,szPropertyValue) \ KVSM_PARAMETERS_END(c) \ \ if(szName.isEmpty()) \ @@ -912,12 +960,6 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) return false; \ } \ \ - if(szPropertyName.isEmpty()) \ - { \ - c->error(__tr2qs_ctx("You must provide the value as parameter","serverdb")); \ - return false; \ - } \ - \ KviNetwork * pNetwork = g_pServerDataBase->findNetwork(szName); \ if(!pNetwork) \ { \ @@ -926,7 +968,7 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) return false; \ } \ \ - pNetwork->__callName(szPropertyName); \ + pNetwork->__callName(szPropertyValue); \ \ return true; \ } @@ -934,12 +976,12 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) #define SERVERDB_SET_SERVER_PROPERTY(__functionName,__callName) \ static bool __functionName(KviKvsModuleCommandCall * c) \ { \ - QString szNetName, szServName, szPropertyName; \ + QString szNetName, szServName, szPropertyValue; \ \ KVSM_PARAMETERS_BEGIN(c) \ KVSM_PARAMETER("network_name",KVS_PT_STRING,0,szNetName) \ KVSM_PARAMETER("server_name",KVS_PT_STRING,0,szServName) \ - KVSM_PARAMETER("property",KVS_PT_STRING,KVS_PF_APPENDREMAINING,szPropertyName) \ + KVSM_PARAMETER("property",KVS_PT_STRING,KVS_PF_APPENDREMAINING,szPropertyValue) \ KVSM_PARAMETERS_END(c) \ \ if(szNetName.isEmpty()) \ @@ -954,12 +996,6 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) return false; \ } \ \ - if(szPropertyName.isEmpty()) \ - { \ - c->error(__tr2qs_ctx("You must provide the value as parameter","serverdb")); \ - return false; \ - } \ - \ KviNetwork * pRecord = g_pServerDataBase->findNetwork(szNetName); \ if(!pRecord) \ { \ @@ -976,7 +1012,7 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) return false; \ } \ \ - pServer->__callName(szPropertyName); \ + pServer->__callName(szPropertyValue); \ \ return true; \ } @@ -990,7 +1026,7 @@ static bool serverdb_kvs_cmd_addServer(KviKvsModuleCommandCall * c) @short: Sets the nickname @syntax: - serverdb.setNetworkNickName [switches] + serverdb.setNetworkNickName [switches] @description: Sets the nickname for the specified network . @switches: @@ -1015,7 +1051,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkNickName,setNickName) @short: Sets the username @syntax: - serverdb.setNetworkUserName [switches] + serverdb.setNetworkUserName [switches] @description: Sets the username for the specified network . @switches: @@ -1040,7 +1076,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkUserName,setUserName) @short: Sets the realname @syntax: - serverdb.setNetworkRealName [switches] + serverdb.setNetworkRealName [switches] @description: Sets the realname for the specified network . @switches: @@ -1065,7 +1101,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkRealName,setRealName) @short: Sets the encoding @syntax: - serverdb.setNetworkEncoding [switches] + serverdb.setNetworkEncoding [switches] @description: Sets the encoding for the specified network . This encoding will be used for server-specific text, like channel names and nicknames. @@ -1091,7 +1127,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkEncoding,setEncoding) @short: Sets the encoding @syntax: - serverdb.setNetworkTextEncoding [switches] + serverdb.setNetworkTextEncoding [switches] @description: Sets the encoding for the specified network . This encoding will be used for text messages. @switches: @@ -1116,7 +1152,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkTextEncoding,setTextEnc @short: Sets the description @syntax: - serverdb.setNetworkDescription [switches] + serverdb.setNetworkDescription [switches] @description: Sets the description for the specified network . @switches: @@ -1141,7 +1177,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkDescription,setDescript @short: Sets the connect command @syntax: - serverdb.setNetworkConnectCommand [switches] + serverdb.setNetworkConnectCommand [switches] @description: Sets the command to run on connect for the specified network . @switches: @@ -1166,7 +1202,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkConnectCommand,setOnCon @short: Sets the login command @syntax: - serverdb.setNetworkLoginCommand [switches] + serverdb.setNetworkLoginCommand [switches] @description: Sets the command to run on login for the specified network . @switches: @@ -1191,10 +1227,10 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkLoginCommand,setOnLogin @short: Sets the autojoin channels list @syntax: - serverdb.setNetworkJoinChannels + serverdb.setNetworkJoinChannels @description: Sets the autojoin channels list for the specified network .[br] - Items in the list have to be separated by a comma, and each item has to be in the form : + Items in the list have to be separated by a comma, and each item has to be in the form : @examples: [example] [comment]Set two autojoin channels for freenode[/comment][br] @@ -1214,7 +1250,7 @@ SERVERDB_SET_NETWORK_PROPERTY(serverdb_kvs_cmd_setNetworkJoinChannels,setAutoJoi @short: Sets the nickname @syntax: - serverdb.setServerNickName [switches] + serverdb.setServerNickName [switches] @description: Sets the nickname for the specified server in the network . @switches: @@ -1239,7 +1275,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerNickName,setNickName) @short: Sets the username @syntax: - serverdb.setServerUserName [switches] + serverdb.setServerUserName [switches] @description: Sets the username for the specified server in the network . @switches: @@ -1264,7 +1300,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerUserName,setUserName) @short: Sets the realname @syntax: - serverdb.setServerRealName [switches] + serverdb.setServerRealName [switches] @description: Sets the realname for the specified server in the network . @switches: @@ -1289,7 +1325,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerRealName,setRealName) @short: Sets the encoding @syntax: - serverdb.setServerEncoding [switches] + serverdb.setServerEncoding [switches] @description: Sets the encoding for the specified server in the network . This encoding will be used for server-specific text, like channel names and nicknames. @@ -1315,7 +1351,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerEncoding,setEncoding) @short: Sets the text encoding @syntax: - serverdb.setServerTextEncoding [switches] + serverdb.setServerTextEncoding [switches] @description: Sets the encoding for the specified server in the network . This encoding will be used for text messages. @switches: @@ -1340,7 +1376,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerTextEncoding,setTextEncod @short: Sets the description @syntax: - serverdb.setServerDescription [switches] + serverdb.setServerDescription [switches] @description: Sets the description for the specified server in the network . @switches: @@ -1365,7 +1401,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerDescription,setDescriptio @short: Sets the connect command @syntax: - serverdb.setServerConnectCommand [switches] + serverdb.setServerConnectCommand [switches] @description: Sets the command to run on connect for the specified server in the network . @switches: @@ -1390,7 +1426,7 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerConnectCommand,setOnConne @short: Sets the login command @syntax: - serverdb.setServerLoginCommand [switches] + serverdb.setServerLoginCommand [switches] @description: Sets the command to run on login for the specified server in the network . @switches: @@ -1415,10 +1451,10 @@ SERVERDB_SET_SERVER_PROPERTY(serverdb_kvs_cmd_setServerLoginCommand,setOnLoginCo @short: Sets the autojoin channels list @syntax: - serverdb.setServerJoinChannels + serverdb.setServerJoinChannels @description: Sets the autojoin channels list for the specified server in the network .[br] - Items in the list have to be separated by a comma, and each item has to be in the form : + Items in the list have to be separated by a comma, and each item has to be in the form : @examples: [example] [comment]Set two autojoin channels for irc.freenode.net[/comment][br] -- cgit v1.3.1-10-gc9f91