/* X-Chat
* Copyright (C) 1998 Peter Zelezny.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifndef WIN32
#include <unistd.h>
#endif
#include "hexchat.h"
#include "cfgfiles.h"
#include "fe.h"
#include "server.h"
#include "text.h"
#include "util.h" /* token_foreach */
#include "hexchatc.h"
#include "servlist.h"
struct defaultserver
{
char *network;
char *host;
char *channel;
char *charset;
int loginmode; /* default authentication type */
char *connectcmd; /* default connect command - should only be used for rare login types, paired with LOGIN_CUSTOM */
gboolean ssl;
};
static const struct defaultserver def[] =
{
{"2600net", 0},
/* Invalid hostname in cert */
{0, "irc.2600.net"},
{"AccessIRC", 0},
/* Self signed */
{0, "irc.accessirc.net"},
{"AfterNET", 0, 0, 0, LOGIN_SASL, 0, TRUE},
{0, "irc.afternet.org"},
{"Aitvaras", 0},
#ifdef USE_OPENSSL
{0, "irc.data.lt/+6668"},
{0, "irc.omnitel.net/+6668"},
{0, "irc.ktu.lt/+6668"},
{0, "irc.kis.lt/+6668"},
{0, "irc.vub.lt/+6668"},
#endif
{0, "irc.data.lt"},
{0, "irc.omnitel.net"},
{0, "irc.ktu.lt"},
{0, "irc.kis.lt"},
{0, "irc.vub.lt"},
{"Anthrochat", 0, 0, 0, 0, 0, TRUE},
{0, "irc.anthrochat.net"},
{"ARCNet", 0},
{0, "arcnet-irc.org"},
{"AustNet", 0},
{0, "irc.austnet.org"},
{"AzzurraNet", 0},
{0, "irc.azzurra.org"},
{"BetaChat", 0, 0, 0, LOGIN_SASL},
{0, "irc.betachat.net"},
{"BuddyIM", 0, 0, 0, LOGIN_SASL, 0, TRUE},
{