]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-channels.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-channels.c
index 57eaa9d235efd81d72b538aff552c24fe87843c0..1e116474f8a8c9dce171f35cebe2890bce3b2479 100644 (file)
 void *channels_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void channels_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *channels_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *channels_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (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;