]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-hostpct.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-hostpct.c
index 45676afbde43609548e7f76ceba195324749085f..ca87951ae07b34fb5608acab1245e9a2ec193b8a 100644 (file)
@@ -13,11 +13,6 @@ void hostpct_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *hostpct_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->type != SEARCHTYPE_CHANNEL) {
-    parseError = "uniquehostpct: this function is only valid for channel searches.";
-    return NULL;
-  }
-
   if (!(thenode=(struct searchNode *)malloc(sizeof(struct searchNode)))) {
     /* couldn't malloc() memory for thenode, so free localdata to avoid leakage */
     parseError = "malloc: could not allocate memory for this search.";