mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Login type cleanup
This commit is contained in:
@@ -1395,10 +1395,10 @@ inbound_nickserv_login (server *serv)
|
||||
{
|
||||
case LOGIN_MSG_NICKSERV:
|
||||
case LOGIN_NICKSERV:
|
||||
case LOGIN_NS:
|
||||
case LOGIN_MSG_NS:
|
||||
case LOGIN_CHALLENGEAUTH:
|
||||
#if 0
|
||||
case LOGIN_NS:
|
||||
case LOGIN_MSG_NS:
|
||||
case LOGIN_AUTH:
|
||||
#endif
|
||||
return 1;
|
||||
|
||||
@@ -73,10 +73,10 @@ irc_nickserv (server *serv, char *cmd, char *arg1, char *arg2, char *arg3)
|
||||
case LOGIN_NICKSERV:
|
||||
tcp_sendf (serv, "NICKSERV %s %s%s%s\r\n", cmd, arg1, arg2, arg3);
|
||||
break;
|
||||
#if 0
|
||||
case LOGIN_MSG_NS:
|
||||
tcp_sendf (serv, "PRIVMSG NS :%s %s%s%s\r\n", cmd, arg1, arg2, arg3);
|
||||
break;
|
||||
#if 0
|
||||
case LOGIN_NS:
|
||||
tcp_sendf (serv, "NS %s %s%s%s\r\n", cmd, arg1, arg2, arg3);
|
||||
break;
|
||||
@@ -109,7 +109,7 @@ irc_ns_identify (server *serv, char *pass)
|
||||
static void
|
||||
irc_ns_ghost (server *serv, char *usname, char *pass)
|
||||
{
|
||||
if (serv->loginmethod != LOGIN_AUTH && serv->loginmethod != LOGIN_CHALLENGEAUTH)
|
||||
if (serv->loginmethod != LOGIN_CHALLENGEAUTH)
|
||||
{
|
||||
irc_nickserv (serv, "GHOST", usname, " ", pass);
|
||||
}
|
||||
|
||||
@@ -547,11 +547,11 @@ static const struct defaultserver def[] =
|
||||
{0, "irc.servx.ru"},
|
||||
{0, "irc.gavnos.ru"},
|
||||
|
||||
{"UnderNet", 0},
|
||||
{"UnderNet", 0, 0, 0, LOGIN_CUSTOM},
|
||||
{0, "us.undernet.org"},
|
||||
{0, "eu.undernet.org"},
|
||||
|
||||
{"UniBG", 0, 0, 0, LOGIN_MSG_NS},
|
||||
{"UniBG", 0, 0, 0, LOGIN_CUSTOM},
|
||||
{0, "irc.lirex.com"},
|
||||
{0, "irc.naturella.com"},
|
||||
{0, "irc.spnet.net"},
|
||||
|
||||
@@ -70,9 +70,11 @@ extern GSList *network_list;
|
||||
#define LOGIN_DEFAULT 0 /* this is for the login type dropdown, doesn't serve any other purpose */
|
||||
#define LOGIN_MSG_NICKSERV 1
|
||||
#define LOGIN_NICKSERV 2
|
||||
#if 0
|
||||
#define LOGIN_NS 3
|
||||
#define LOGIN_MSG_NS 4
|
||||
#define LOGIN_AUTH 5
|
||||
#endif
|
||||
#define LOGIN_SASL 6
|
||||
#define LOGIN_PASS 7
|
||||
#define LOGIN_CHALLENGEAUTH 8
|
||||
|
||||
Reference in New Issue
Block a user