void *qemail_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput);
void qemail_free(searchCtx *ctx, struct searchNode *thenode);
-struct searchNode *qemail_parse(searchCtx *ctx, int type, int argc, char **argv) {
+struct searchNode *qemail_parse(searchCtx *ctx, int argc, char **argv) {
struct searchNode *thenode;
- if (type != SEARCHTYPE_USER) {
- parseError = "qemail: this function is only valid for user searches.";
- return NULL;
- }
-
if (!(thenode=(struct searchNode *)malloc(sizeof (struct searchNode)))) {
parseError = "malloc: could not allocate memory for this search.";
return NULL;
void *qemail_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
authname *ap = (authname *)theinput;
- reguser *rup = ap->exts[chanservext];
+ reguser *rup = ap->exts[chanservaext];
if(!rup || !rup->email)
return "";