# The serverdb module Interface to the servers database
The serverdb module is the scripting interface to the servers and networks database. It provides the following set of commands: serverdb.addnetwork: adds a network entry to the database serverdb.addserver: adds a server entry to the database serverdb.setnetworkconnectcommand: sets a "on connect" script for the network serverdb.setnetworkencoding: sets the network encoding serverdb.setnetworktextencoding: sets the network text encoding serverdb.setnetworkdescription: sets the network description serverdb.setnetworklogincommand: sets a "on login" script for the network serverdb.setnetworknickname: sets the network specific nickname serverdb.setnetworkrealname: sets the network specific realname serverdb.setnetworkusername: sets the network specific username serverdb.setnetworkjoinchannels: sets the network autojoin channels list serverdb.setserverconnectcommand: sets a "on connect" script for the server serverdb.setserverencoding: sets the server encoding serverdb.setservertextencoding: sets the server text encoding serverdb.setserverdescription: sets the server description serverdb.setserverlogincommand: sets a "on login" script for the server serverdb.setservernickname: sets the server specific nickname serverdb.setserverrealname: sets the server specific realname serverdb.setserverusername: sets the server specific username serverdb.setserverjoinchannels: sets the server autojoin channels list It provides the following set of functions: $serverdb.cacheip: returns the cache-ip status for a server $serverdb.networkconnectcommand: returns the "on connect" script for a network $serverdb.networkdescription: returns the description for a network $serverdb.networkencoding: returns the encoding for a network $serverdb.networktextencoding: returns the text encoding for a network $serverdb.networklogincommand: returns the "on login" script for a network $serverdb.networkname: returns the name of a network $serverdb.networknickname: returns the specific nickname for a network $serverdb.networkrealname: returns the specific realname for a network $serverdb.networkusername: returns the specific username for a network $serverdb.networkjoinchannels: returns the list of autojoin channels for a network $serverdb.serverconnectcommand: returns the "on connect" script for a server $serverdb.serverdescription: returns the description for a server $serverdb.serverencoding: returns the encoding for a server $serverdb.servertextencoding: returns the text encoding for a server $serverdb.serverid: returns the unique id for a server $serverdb.serverip: returns the ip for a server $serverdb.serverlogincommand: returns the "on login" script for a server $serverdb.servernickname: returns the specific nickname for a server $serverdb.serverpassword: returns the password for a server $serverdb.serverport: returns the port for a server $serverdb.serverrealname: returns the specific realname for a server $serverdb.serverusername: returns the specific username for a server $serverdb.serverjoinchannels: returns the list of autojoin channels for a server $serverdb.isautoconnect: returns the autoconnect status for a server $serverdb.isipv6: returns the ipv6 status for a server $serverdb.isssl: returns the ssl status for a server $serverdb.networkexists: checks if a network exists $serverdb.serverexists: checks if a server exists

Index, Modules

KVIrc 4.2.0.6190 Documentation
Generated by nobody at Thu May 29 11:24:48 2014