]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-channels.c
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / newsearch / ns-channels.c
index 8627eddb958ca2eeea9507495b03c4fee5fe545e..1e116474f8a8c9dce171f35cebe2890bce3b2479 100644 (file)
@@ -16,11 +16,6 @@ void channels_free(searchCtx *ctx, struct searchNode *thenode);
 struct searchNode *channels_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (ctx->type != SEARCHTYPE_NICK) {
-    parseError = "channels: this function is only valid for nick searches.";
-    return NULL;
-  }
-
   if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) {
     parseError = "malloc: could not allocate memory for this search.";
     return NULL;