]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-size.c
Merge default into chanserv-live.
[irc/quakenet/newserv.git] / newsearch / ns-size.c
index b878d327dd2961bb05c52807022eb8aeec4bf101..12e5acbd1cef69c391a2de3cc3a8753761806a46 100644 (file)
 void *size_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void size_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *size_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *size_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_CHANNEL) {
-    parseError = "size: 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.";