]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-realname.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-realname.c
index d648710f8a66d46b7dafde8696d56a5cc11edbe0..e55824447100768bed5c9d63449908c84768f1a7 100644 (file)
 void *realname_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
 void realname_free(searchCtx *ctx, struct searchNode *thenode);
 
-struct searchNode *realname_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *realname_parse(searchCtx *ctx, int argc, char **argv) {
   struct searchNode *thenode;
 
-  if (type != SEARCHTYPE_NICK) {
-    parseError = "realname: 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;