THE IMPOSSIBLE

This commit is contained in:
Emil 2023-08-04 03:51:14 -06:00
parent 4d893fb3d9
commit 8e8299ff15
2 changed files with 6 additions and 7 deletions

View File

@ -2,7 +2,3 @@ server=irc.rizon.net
username=probotic
port=6667
admins=anon8697 emilemilemil fa11_1eaf
; provide channel yourself
; lines without an equal sign are dropped
; prefix comments with a semicolon for future compat

View File

@ -174,8 +174,8 @@ parse_pair(char const * buf, size_t len)
/* X macro for handling this data may be better */
if (strncmp(buf, cred_names[f], cred_names_len[f]) == 0)
{
/* fprintf(stderr, "f%ld:len%ld:%s\n", f, cred_names_len[f], */
/* cred_names[f]); fflush(stderr); */
fprintf(stderr, "f%ld:len%ld:%s\n", f, cred_names_len[f],
cred_names[f]); fflush(stderr);
buf += i;
while (buf[x] != '\0')
{
@ -192,7 +192,10 @@ 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: adm = strndup(buf,x); parse_admins(adm); free(adm); break;
case ADMINS: adm = strndup(buf,x);
parse_admins(adm);
free(adm);
break;
}
if (x + 2 < len)
{ buf += x + 1; }