]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-name.c
CHANSERV: authtracker now keeps 240 days history
[irc/quakenet/newserv.git] / newsearch / ns-name.c
index b287f981a6f48ebfe3d0ad4175cada3c0c49cf28..2b5abc49af0aafcc363565828ef2b39ae6b0c00f 100644 (file)
@@ -13,11 +13,6 @@ void name_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *name_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->type != SEARCHTYPE_CHANNEL) {
-    parseError = "name: 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.";