]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patriciasearch/patriciasearch.c
fixes for clang
[irc/quakenet/newserv.git] / patriciasearch / patriciasearch.c
index 928884c4aa151d0e9fd9574774ba7dfa600785f4..5bccf563bd5ae5b0fe1cf4506affd59a5ac9f003 100644 (file)
 #include "../lib/stringbuf.h"
 #include "../lib/strlfunc.h"
 #include "patriciasearch.h"
+#include "../lib/version.h"
+#include "../newsearch/newsearch.h"
+
+MODULE_VERSION("")
 
 searchCmd *reg_nodesearch;
 
@@ -51,7 +55,7 @@ int do_pnodesearch_real(replyFunc reply, wallFunc wall, void *source, int cargc,
 
   if (cargc<1) { 
     reply( sender, "Usage: [flags] <criteria>");
-    reply( sender, "For help, see help nicksearch");
+    reply( sender, "For help, see help nodesearch");
     return CMD_OK;
   }
 
@@ -70,7 +74,11 @@ int do_pnodesearch_real(replyFunc reply, wallFunc wall, void *source, int cargc,
 
   tree = parse_string(reg_nodesearch, cargv[arg]);
   if(!tree) {
+#ifdef NEWSEARCH_NEWPARSER
     displaystrerror(reply, sender, cargv[arg]);
+#else
+    reply(sender,"Something went wrong.");
+#endif
     return CMD_ERROR;
   }