mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-17 20:19:24 +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:
@@ -67,8 +67,8 @@ send_channel_modes (session *sess, char *tbuf, char *word[], int wpos,
|
||||
int usable_modes, orig_len, len, wlen, i, max;
|
||||
server *serv = sess->server;
|
||||
|
||||
/* sanity check. IRC RFC says three per line. */
|
||||
if (serv->modes_per_line < 3)
|
||||
/* sanity check. IRC RFC says three per line but some servers may support less. */
|
||||
if (serv->modes_per_line < 1)
|
||||
serv->modes_per_line = 3;
|
||||
if (modes_per_line < 1)
|
||||
modes_per_line = serv->modes_per_line;
|
||||
|
||||
Reference in New Issue
Block a user