Provide default NickServ types where necessary
This commit is contained in:
parent
d9be5e098f
commit
fb696b7a68
|
@ -43,6 +43,7 @@ struct defaultserver
|
|||
char *host;
|
||||
char *channel;
|
||||
char *charset;
|
||||
int nsmode; /* default NickServ type */
|
||||
};
|
||||
|
||||
static const struct defaultserver def[] =
|
||||
|
@ -166,7 +167,7 @@ static const struct defaultserver def[] =
|
|||
{0, "irc.criten.net"},
|
||||
{0, "irc.eu.criten.net"},
|
||||
|
||||
{"DALnet", 0},
|
||||
{"DALnet", 0, 0, 0, 2},
|
||||
{0, "irc.dal.net"},
|
||||
{0, "irc.eu.dal.net"},
|
||||
|
||||
|
@ -433,7 +434,7 @@ static const struct defaultserver def[] =
|
|||
{0, "nfsi.ptnet.org"},
|
||||
{0, "fctunl.ptnet.org"},
|
||||
|
||||
{"QuakeNet", 0},
|
||||
{"QuakeNet", 0, 0, 0, 5},
|
||||
{0, "irc.quakenet.org"},
|
||||
{0, "irc.se.quakenet.org"},
|
||||
{0, "irc.dk.quakenet.org"},
|
||||
|
@ -467,7 +468,7 @@ static const struct defaultserver def[] =
|
|||
{"Rizon", 0},
|
||||
{0, "irc.rizon.net"},
|
||||
|
||||
{"RusNet", 0, 0, "KOI8-R (Cyrillic)"},
|
||||
{"RusNet", 0, 0, "KOI8-R (Cyrillic)", 2},
|
||||
{0, "irc.tomsk.net"},
|
||||
{0, "irc.rinet.ru"},
|
||||
{0, "irc.run.net"},
|
||||
|
@ -552,7 +553,7 @@ static const struct defaultserver def[] =
|
|||
{0, "us.undernet.org"},
|
||||
{0, "eu.undernet.org"},
|
||||
|
||||
{"UniBG", 0},
|
||||
{"UniBG", 0, 0, 0, 4},
|
||||
{0, "irc.lirex.com"},
|
||||
{0, "irc.naturella.com"},
|
||||
{0, "irc.spnet.net"},
|
||||
|
@ -1036,6 +1037,10 @@ servlist_load_defaults (void)
|
|||
free (net->encoding);
|
||||
net->encoding = strdup (def[i].charset);
|
||||
}
|
||||
if (def[i].nsmode)
|
||||
{
|
||||
net->nstype = def[i].nsmode;
|
||||
}
|
||||
if (g_str_hash (def[i].network) == def_hash)
|
||||
{
|
||||
prefs.hex_gui_slist_select = j;
|
||||
|
|
Loading…
Reference in New Issue