Merge pull request #15 from ZoiteChat/Fix-channel-config-line-endings

Refactor newline handling in servlist.c
This commit is contained in:
deepend-tildeclub
2026-01-16 15:59:55 -07:00
committed by GitHub

View File

@@ -990,11 +990,10 @@ servlist_load (void)
while (fgets (buf, sizeof (buf) - 2, fp))
{
g_strchomp (buf);
len = strlen (buf);
if (!len)
continue;
buf[len] = 0;
buf[len-1] = 0; /* remove the trailing \n */
if (net)
{
switch (buf[0])