~aleteoryx/sexchat

67375498db26dd61baee343882027b085166b86e — Aleteoryx 4 months ago 9a9f588
don't throttle critical traffic

Fixes: https://todo.amehut.dev/~aleteoryx/sexchat/16
1 files changed, 1 insertions(+), 1 deletions(-)

M src/common/server.c
M src/common/server.c => src/common/server.c +1 -1
@@ 183,7 183,7 @@ tcp_send_len (server *serv, char *buf, int len)
	char *dbuf;
	int noqueue = !serv->outbound_queue;

	if (!prefs.hex_net_throttle)
	if (!prefs.hex_net_throttle || !serv->end_of_motd || g_ascii_strncasecmp (buf, "PONG", 4) == 0)
		return server_send_real (serv, buf, len);

	dbuf = g_malloc (len + 2);	/* first byte is the priority */