]> jfr.im git - irc/quakenet/newserv.git/blob - newsearch/ns-var.c
LUA: port luadb to dbapi2 to drop postgres dependency
[irc/quakenet/newserv.git] / newsearch / ns-var.c
1 /*
2 * VAR functionality
3 */
4
5 #include "newsearch.h"
6
7 #include <stdio.h>
8 #include <stdlib.h>
9
10 struct searchNode *var_parse(searchCtx *ctx, int argc, char **argv) {
11 if(argc < 1) {
12 parseError = "var: usage: var variable";
13 return NULL;
14 }
15
16 /* @argv usage OK */
17 return var_get(ctx, argv[0]);
18 }