From: Chris Porter Date: Mon, 13 Oct 2008 01:44:39 +0000 (+0100) Subject: O has stupid #'s. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/ce7bce4c98d38c641ff9d3953ba285c51d570785 O has stupid #'s. --- diff --git a/trusts/formats.c b/trusts/formats.c index aa427760..d3557044 100644 --- a/trusts/formats.c +++ b/trusts/formats.c @@ -132,6 +132,9 @@ int parsetg(char *buf, trustgroup *tg, int oformat) { return 0; *line++ = '\0'; + if(oformat && (id[0] == '#')) + id++; + tg->id = strtoul(id, NULL, 10); if(!tg->id) return 0; @@ -199,6 +202,9 @@ int parseth(char *line, trusthost *th, unsigned int *tgid, int oformat) { return 0; *line++ = '\0'; + if(oformat && (id[0] == '#')) + id++; + *tgid = strtoul(id, NULL, 10); if(!*tgid) return 0;