1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-10 11:25:08 -05:00

Fix QuakeNet registration

This commit is contained in:
Berke Viktor 2013-05-03 18:00:30 +02:00
parent fb696b7a68
commit ba78c0527f

View File

@ -80,14 +80,21 @@ irc_nickserv (server *serv, char *cmd, char *arg1, char *arg2, char *arg3)
break; break;
case 4: case 4:
/* why couldn't QuakeNet implement one of the existing ones? */ /* why couldn't QuakeNet implement one of the existing ones? */
tcp_sendf (serv, "AUTH %s%s%s\r\n", cmd, arg1, arg2, arg3); tcp_sendf (serv, "AUTH %s %s\r\n", arg1, arg2);
} }
} }
static void static void
irc_ns_identify (server *serv, char *pass) irc_ns_identify (server *serv, char *pass)
{ {
irc_nickserv (serv, "IDENTIFY", pass, "", ""); if (serv->nickservtype == 4) /* QuakeNet needs to do everything in its own ways... */
{
irc_nickserv (serv, NULL, serv->nick, pass, NULL);
}
else
{
irc_nickserv (serv, "IDENTIFY", pass, "", "");
}
} }
static void static void