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