X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/371e8b02bba7f176625cffe8170366689771912e..8855bb48b449ed06cfd3ce528b3c0a77c37cb24b:/newsearch/ns-hostmask.c?ds=sidebyside diff --git a/newsearch/ns-hostmask.c b/newsearch/ns-hostmask.c index 421e3cef..caa66e08 100644 --- a/newsearch/ns-hostmask.c +++ b/newsearch/ns-hostmask.c @@ -18,14 +18,25 @@ void hostmask_free(searchCtx *ctx, struct searchNode *thenode); struct searchNode *hostmask_parse(searchCtx *ctx, int argc, char **argv) { struct searchNode *thenode; - int realhost = 0, realname = 0, i; + int realhost = 0, realname = 0, i, error = 0; for(i=0;ifree(ctx, convsn); + + if(error) { parseError = "bad argument: use realhost and/or realname"; return NULL; }