This commit is contained in:
Emil 2023-08-04 02:24:37 -06:00
parent 40da5fbcda
commit c5c5fffec2

View File

@ -192,10 +192,7 @@ parse_pair(char const * buf, size_t len)
case CHANNEL: creds.channel = strndup(buf,x); break;
case SERVER: creds.server = strndup(buf,x); break;
case PORT: creds.port = atoi(buf); break;
case ADMINS:
parse_admins(strndup(buf,x));
break;
case ADMINS: parse_admins(strndup(buf,x)); break;
}
if (x + 2 < len)
{ buf += x + 1; }
@ -272,4 +269,5 @@ creds_free_rest(void)
/* FULL_FREE(creds.password); */
FULL_FREE(creds.channel);
FULL_FREE(creds.server);
FULL_FREE(creds.admins);
}