]> jfr.im git - irc/quakenet/newserv.git/blobdiff - patriciasearch/patriciasearch.c
fixes for clang
[irc/quakenet/newserv.git] / patriciasearch / patriciasearch.c
index 678cfb35bbd1bb6ed29cc05fdb5a33db1fc426b1..5bccf563bd5ae5b0fe1cf4506affd59a5ac9f003 100644 (file)
@@ -12,6 +12,7 @@
 #include "../lib/strlfunc.h"
 #include "patriciasearch.h"
 #include "../lib/version.h"
+#include "../newsearch/newsearch.h"
 
 MODULE_VERSION("")
 
@@ -73,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;
   }