]>
jfr.im git - irc/quakenet/newserv.git/blob - newsearch/ns-nick.c
10 void *nick_exe(struct searchNode
*thenode
, int type
, void *theinput
);
11 void nick_free(struct searchNode
*thenode
);
13 struct searchNode
*nick_parse(int type
, int argc
, char **argv
) {
14 struct searchNode
*thenode
;
16 if (type
!= SEARCHTYPE_NICK
) {
17 parseError
= "nick: this function is only valid for nick searches.";
21 thenode
=(struct searchNode
*)malloc(sizeof (struct searchNode
));
23 thenode
->returntype
= RETURNTYPE_STRING
;
24 thenode
->localdata
= NULL
;
25 thenode
->exe
= nick_exe
;
26 thenode
->free
= nick_free
;
31 void *nick_exe(struct searchNode
*thenode
, int type
, void *theinput
) {
32 nick
*np
= (nick
*)theinput
;
34 if (type
!= RETURNTYPE_STRING
) {
41 void nick_free(struct searchNode
*thenode
) {