deregistersearchcommand( reg_nicksearch );
deregistersearchcommand( reg_chansearch );
deregistersearchcommand( reg_usersearch );
+ deregistersearchcommand( reg_whowassearch );
destroycommandtree( searchCmdTree );
}
int len=strlen(help);
sl->help=(char *)malloc(len+1);
if(!sl->help) {
+ freesstring(sl->name);
+ free(sl);
Error("newsearch", ERR_ERROR, "malloc failed: registerglobalsearchterm");
return;
}
deletecommandfromtree(cmd->searchtree, term, (CommandHandler) parsefunc);
}
-static void controlwallwrapper(int level, char *format, ...) __attribute__ ((format (printf, 2, 3)));
+static void controlwallwrapper(int level, char *format, ...) __attribute__ ((format (printf, 2, 3)));
static void controlwallwrapper(int level, char *format, ...) {
char buf[1024];
va_list ap;
/* The top-level node needs to return a BOOL */
search=coerceNode(ctx, search, RETURNTYPE_BOOL);
- for (i = whowasoffset; i < whowasoffset + WW_MAXENTRIES; i++) {
- ww = &whowasrecs[i % WW_MAXENTRIES];
+ for (i = whowasoffset; i < whowasoffset + whowasmax; i++) {
+ ww = &whowasrecs[i % whowasmax];
if (ww->type == WHOWAS_UNUSED)
continue;