]>
jfr.im git - irc/quakenet/newserv.git/blob - newsearch/ns-authname.c
2 * AUTHNAME functionality
10 void *authname_exe(searchCtx
*ctx
, struct searchNode
*thenode
, void *theinput
);
11 void authname_free(searchCtx
*ctx
, struct searchNode
*thenode
);
13 struct searchNode
*authname_parse(searchCtx
*ctx
, int argc
, char **argv
) {
14 struct searchNode
*thenode
;
16 if (!(thenode
=(struct searchNode
*)malloc(sizeof (struct searchNode
)))) {
17 parseError
= "malloc: could not allocate memory for this search.";
21 thenode
->returntype
= RETURNTYPE_STRING
;
22 thenode
->localdata
= NULL
;
23 thenode
->exe
= authname_exe
;
24 thenode
->free
= authname_free
;
29 void *authname_exe(searchCtx
*ctx
, struct searchNode
*thenode
, void *theinput
) {
30 nick
*np
= (nick
*)theinput
;
35 return ""; /* will cast to a FALSE */
39 void authname_free(searchCtx
*ctx
, struct searchNode
*thenode
) {