1
0
forked from bip/bip

try to mitigate freenode antiflood throttling

This commit is contained in:
Arnaud Cornet 2010-02-17 12:34:57 +00:00
parent 4d5ef34325
commit f995c1f537

View File

@ -1961,6 +1961,9 @@ static void irc_server_startup(struct link_server *ircs)
char *nick; char *nick;
char *username, *realname; char *username, *realname;
/* lower the token number as freenode hates fast login */
CONN(ircs)->token = 1;
if (LINK(ircs)->s_password) if (LINK(ircs)->s_password)
WRITE_LINE1(CONN(ircs), NULL, "PASS", LINK(ircs)->s_password); WRITE_LINE1(CONN(ircs), NULL, "PASS", LINK(ircs)->s_password);