]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-authedpct.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-authedpct.c
index ebbf8a94fa201a1dd0504f66d5bc17d4d4227dd6..f8b67dcef30240899043ee092abe81dc05fc080f 100644 (file)
@@ -13,11 +13,6 @@ void authedpct_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *authedpct_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->type != SEARCHTYPE_CHANNEL) {
-    parseError = "authedpct: 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.";
@@ -37,10 +32,7 @@ void *authedpct_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput)
   int j=0;
   nick *np;
   chanindex *cip = (chanindex *)theinput;
-  struct authedpct_localdata *localdata;
 
-  localdata = thenode->localdata;
-  
   if (!cip->channel)
     return (void *)0;