mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 18:50:19 +00:00
Remove some weird guesswork on the 004 numeric. (#2621)
Bahamut and ircu both send 005 MODES and ELIST so this is entirely unnecessary. The other IRCd checked for here is for a dead network. While we're editing this code fix HexChat on servers that can only support one mode at a time (these are mostly gateway servers).
This commit is contained in:
@@ -503,22 +503,6 @@ process_numeric (session * sess, int n,
|
||||
|
||||
goto def;
|
||||
|
||||
case 4: /* check the ircd type */
|
||||
serv->use_listargs = FALSE;
|
||||
serv->modes_per_line = 3; /* default to IRC RFC */
|
||||
if (strncmp (word[5], "bahamut", 7) == 0) /* DALNet */
|
||||
{
|
||||
serv->use_listargs = TRUE; /* use the /list args */
|
||||
} else if (strncmp (word[5], "u2.10.", 6) == 0) /* Undernet */
|
||||
{
|
||||
serv->use_listargs = TRUE; /* use the /list args */
|
||||
serv->modes_per_line = 6; /* allow 6 modes per line */
|
||||
} else if (strncmp (word[5], "glx2", 4) == 0)
|
||||
{
|
||||
serv->use_listargs = TRUE; /* use the /list args */
|
||||
}
|
||||
goto def;
|
||||
|
||||
case 5:
|
||||
inbound_005 (serv, word, tags_data);
|
||||
goto def;
|
||||
|
||||
Reference in New Issue
Block a user