]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-services.c
LUA: add function for channel chanop notice
[irc/quakenet/newserv.git] / newsearch / ns-services.c
index 08eaaad4c6e5f6367af1372e390477415591ab7c..5a30bbffbdac76d4f1acaf4a57657f3d4befabbe 100644 (file)
 void *services_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void services_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *services_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *services_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_CHANNEL) {
-    parseError = "services: 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.";